diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-23 01:46:19 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-23 01:46:19 +0200 |
commit | 91836baf85ce6980a33c6ce38730928a4edc3c5a (patch) | |
tree | 4bb9751804629463dc9f8e3ff8aac7abd28815df /shell/hush_test | |
parent | af3fd14e4df87d8af833d5e7b97d285b4d137d60 (diff) | |
download | busybox-w32-91836baf85ce6980a33c6ce38730928a4edc3c5a.tar.gz busybox-w32-91836baf85ce6980a33c6ce38730928a4edc3c5a.tar.bz2 busybox-w32-91836baf85ce6980a33c6ce38730928a4edc3c5a.zip |
hush: fix `trap`
function old new delta
expand_variables 2217 2280 +63
static.argv - 8 +8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test')
-rw-r--r-- | shell/hush_test/hush-trap/savetrap.right | 3 | ||||
-rwxr-xr-x | shell/hush_test/hush-trap/savetrap.tests | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/shell/hush_test/hush-trap/savetrap.right b/shell/hush_test/hush-trap/savetrap.right new file mode 100644 index 000000000..2d33427aa --- /dev/null +++ b/shell/hush_test/hush-trap/savetrap.right | |||
@@ -0,0 +1,3 @@ | |||
1 | trap -- 'echo WINCH!' SIGWINCH | ||
2 | trap -- 'echo WINCH!' SIGWINCH | ||
3 | Done | ||
diff --git a/shell/hush_test/hush-trap/savetrap.tests b/shell/hush_test/hush-trap/savetrap.tests new file mode 100755 index 000000000..6492e86a2 --- /dev/null +++ b/shell/hush_test/hush-trap/savetrap.tests | |||
@@ -0,0 +1,6 @@ | |||
1 | trap 'echo WINCH!' SIGWINCH | ||
2 | v=` trap ` | ||
3 | echo $v | ||
4 | v=`trap` | ||
5 | echo $v | ||
6 | echo Done | ||