hush: fix set -n to act immediately, not just after run_list()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
7
shell/hush_test/hush-misc/exitcode_trap7.tests
Executable file
7
shell/hush_test/hush-misc/exitcode_trap7.tests
Executable file
@@ -0,0 +1,7 @@
|
||||
$THIS_SH -c '
|
||||
cleanup() { set +e; false; }
|
||||
set -e
|
||||
trap cleanup EXIT
|
||||
echo Start
|
||||
'
|
||||
echo Ok:$?
|
||||
Reference in New Issue
Block a user