]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r230212:
authordumbbell <dumbbell@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 6 Feb 2012 13:29:50 +0000 (13:29 +0000)
committerdumbbell <dumbbell@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 6 Feb 2012 13:29:50 +0000 (13:29 +0000)
commita224da40b4c99b7e530e96a07a823b3b103477a5
tree344f4a74a1606201a09377e24f5385d950da521a
parent14c051cf6d67648344486e0167bbd5868c472e9d
MFC r230212:
sh: Fix execution of multiple statements in a trap when evalskip is set

Before this fix, only the first statement of the trap was executed if
evalskip was set. This is for example the case when:
    o  "-e" is set for this shell
    o  a trap is set on EXIT
    o  a function returns 1 and causes the script to abort

Reviewed by: jilles
Sponsored by: Yakaz (http://www.yakaz.com)

git-svn-id: svn://svn.freebsd.org/base/stable/9@231085 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/sh/eval.c
bin/sh/eval.h
bin/sh/trap.c
tools/regression/bin/sh/builtins/trap10.0 [new file with mode: 0644]
tools/regression/bin/sh/builtins/trap11.0 [new file with mode: 0644]