aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-trap
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-23 01:46:19 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-23 01:46:19 +0200
commit91836baf85ce6980a33c6ce38730928a4edc3c5a (patch)
tree4bb9751804629463dc9f8e3ff8aac7abd28815df /shell/hush_test/hush-trap
parentaf3fd14e4df87d8af833d5e7b97d285b4d137d60 (diff)
downloadbusybox-91836baf85ce6980a33c6ce38730928a4edc3c5a.tar.gz
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/hush-trap')
-rw-r--r--shell/hush_test/hush-trap/savetrap.right3
-rwxr-xr-xshell/hush_test/hush-trap/savetrap.tests6
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 @@
+trap -- 'echo WINCH!' SIGWINCH
+trap -- 'echo WINCH!' SIGWINCH
+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 @@
+trap 'echo WINCH!' SIGWINCH
+v=` trap `
+echo $v
+v=`trap`
+echo $v
+echo Done