git: sh: Reduce one level of evaltree() recursion when executing 'case'.

Peter Avalos pavalos at crater.dragonflybsd.org
Sun Dec 25 10:09:03 PST 2011


commit b3caee47a0800096c8e8425bcff300d0ee5f2277
Author: Peter Avalos <pavalos at dragonflybsd.org>
Date:   Sun Dec 25 09:20:37 2011 -0800

    sh: Reduce one level of evaltree() recursion when executing 'case'.
    
    Free expanded case text before executing commands.
    Remove impossible evalskip checks (expanding an argument cannot set
    evalskip anymore since $(break) and the like are properly executed
    in a subshell environment).
    
    Obtained-from:  FreeBSD 228013

Summary of changes:
 bin/sh/eval.c |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b3caee47a0800096c8e8425bcff300d0ee5f2277


-- 
DragonFly BSD source repository





More information about the Commits mailing list