From 91836baf85ce6980a33c6ce38730928a4edc3c5a Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 23 Sep 2009 01:46:19 +0200 Subject: hush: fix `trap` function old new delta expand_variables 2217 2280 +63 static.argv - 8 +8 Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-trap/savetrap.right | 3 +++ shell/hush_test/hush-trap/savetrap.tests | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 shell/hush_test/hush-trap/savetrap.right create mode 100755 shell/hush_test/hush-trap/savetrap.tests (limited to 'shell/hush_test') diff --git a/shell/hush_test/hush-trap/savetrap.right b/shell/hush_test/hush-trap/savetrap.right new file mode 100644 index 0000000..2d33427 --- /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 0000000..6492e86 --- /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 -- cgit v1.1