diff options
| author | Ron Yorston <rmy@pobox.com> | 2020-02-21 12:55:36 +0000 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2020-02-21 12:55:36 +0000 |
| commit | 63c8e755021cf35c8a94ea1291c1e123164a7917 (patch) | |
| tree | c971d1e74f99b57d61759cff536e47eee9480157 /shell/ash_test/ash-misc/exitcode_trap2.tests | |
| parent | 896d625cc9e03a726d535da18539602763769d3b (diff) | |
| parent | e2dd2afc8e4dbcf1061818adc68d2e74a1fa64d3 (diff) | |
| download | busybox-w32-63c8e755021cf35c8a94ea1291c1e123164a7917.tar.gz busybox-w32-63c8e755021cf35c8a94ea1291c1e123164a7917.tar.bz2 busybox-w32-63c8e755021cf35c8a94ea1291c1e123164a7917.zip | |
ash: merge changes to local variables from upstream
This brings in dash commit cbb71a8 (eval: Add assignment built-in
support again) which finally makes it possible to sort out local
commit 65189dacb (ash: fix local PATH assignments).
These changes also simplify handling of shellexec and remove the
need for varlist in the forkshell structure.
Diffstat (limited to 'shell/ash_test/ash-misc/exitcode_trap2.tests')
| -rwxr-xr-x | shell/ash_test/ash-misc/exitcode_trap2.tests | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/ash_test/ash-misc/exitcode_trap2.tests b/shell/ash_test/ash-misc/exitcode_trap2.tests new file mode 100755 index 000000000..f259774bf --- /dev/null +++ b/shell/ash_test/ash-misc/exitcode_trap2.tests | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | # "exit" in trap should not use last command's exitcode, | ||
| 2 | # but exitcode on entering the trap. | ||
| 3 | $THIS_SH -c ' | ||
| 4 | trap "false;exit" term | ||
| 5 | kill $$ & | ||
| 6 | (exit 42) | ||
| 7 | wait | ||
| 8 | ' | ||
| 9 | echo 42:$? | ||
