diff options
Diffstat (limited to '')
-rwxr-xr-x | src/kash/tests/trap-exit-1 | 7 |
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 + + |