summaryrefslogtreecommitdiffstats
path: root/src/kash/tests/trap-exit-1
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/kash/tests/trap-exit-17
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kash/tests/trap-exit-1 b/src/kash/tests/trap-exit-1
new file mode 100755
index 0000000..50b805c
--- /dev/null
+++ b/src/kash/tests/trap-exit-1
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+trap 'echo "trap-exit-1: overriding exit 1"; exit 0' EXIT
+exit 1
+exit 2
+
+