busybox/shell/hush_test/hush-misc/exitcode_trap7.tests
Denys Vlasenko e53c7dbafc hush: fix set -n to act immediately, not just after run_list()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2021-09-07 02:25:52 +02:00

8 lines
92 B
Plaintext
Executable File

$THIS_SH -c '
cleanup() { set +e; false; }
set -e
trap cleanup EXIT
echo Start
'
echo Ok:$?