sh: Reduce one level of evaltree() recursion when executing 'case'.
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 25 Dec 2011 17:20:37 +0000 (09:20 -0800)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 25 Dec 2011 17:25:54 +0000 (09:25 -0800)
commitb3caee47a0800096c8e8425bcff300d0ee5f2277
treee2b81e07ffcecf8a209590bb458cffc637b7d79f
parent45ae67c3f324b0f3f42e3fae90e6002e4a5b3bf5
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
bin/sh/eval.c