diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-09-07 02:23:51 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-09-07 02:25:52 +0200 |
commit | e53c7dbafc78948e5c0d8d8ccb0bdcd9f936c62e (patch) | |
tree | 909286fc381d47fba921621afb809a84997815fc /shell/ash_test | |
parent | f415e21a7dce1d4f4b760fddfaba85c551681e11 (diff) | |
download | busybox-w32-e53c7dbafc78948e5c0d8d8ccb0bdcd9f936c62e.tar.gz busybox-w32-e53c7dbafc78948e5c0d8d8ccb0bdcd9f936c62e.tar.bz2 busybox-w32-e53c7dbafc78948e5c0d8d8ccb0bdcd9f936c62e.zip |
hush: fix set -n to act immediately, not just after run_list()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test')
-rwxr-xr-x | shell/ash_test/ash-misc/exitcode_trap7.tests | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash_test/ash-misc/exitcode_trap7.tests b/shell/ash_test/ash-misc/exitcode_trap7.tests index 9772a7b8c..f4b0eb544 100755 --- a/shell/ash_test/ash-misc/exitcode_trap7.tests +++ b/shell/ash_test/ash-misc/exitcode_trap7.tests | |||
@@ -1,6 +1,6 @@ | |||
1 | $THIS_SH -c ' | 1 | $THIS_SH -c ' |
2 | cleanup() { set +e; false; } | 2 | cleanup() { set +e; false; } |
3 | set -eu | 3 | set -e |
4 | trap cleanup EXIT | 4 | trap cleanup EXIT |
5 | echo Start | 5 | echo Start |
6 | ' | 6 | ' |