summaryrefslogtreecommitdiffhomepage
path: root/shell/hush_test/hush-trap/exit.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/hush-trap/exit.tests')
-rw-r--r--shell/hush_test/hush-trap/exit.tests3
1 files changed, 3 insertions, 0 deletions
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'