From fd303b11efb2c87ed239b36c432566a36f859c8e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 29 Mar 2009 09:54:40 +0000 Subject: add test cases for `trap` ... but disabled for now until trap support is committed --- shell/hush_test/hush-trap/exit.tests | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 shell/hush_test/hush-trap/exit.tests (limited to 'shell/hush_test/hush-trap/exit.tests') diff --git a/shell/hush_test/hush-trap/exit.tests b/shell/hush_test/hush-trap/exit.tests new file mode 100644 index 000000000..174e74f45 --- /dev/null +++ b/shell/hush_test/hush-trap/exit.tests @@ -0,0 +1,3 @@ +hush -c 'trap "echo cow" 0' +hush -c 'trap "echo moo" EXIT' +hush -c 'trap "echo no" 0; trap 0' -- cgit v1.2.3