DragonFly BSD
DragonFly commits List (threaded) for 2011-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Peter Avalos <pavalos@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 25 Dec 2011 10:09:03 -0800 (PST)

commit b3caee47a0800096c8e8425bcff300d0ee5f2277
Author: Peter Avalos <pavalos@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]