diff options
Diffstat (limited to 'tests/trap.tests')
-rw-r--r-- | tests/trap.tests | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/trap.tests b/tests/trap.tests index bcf16e5..24f25ab 100644 --- a/tests/trap.tests +++ b/tests/trap.tests @@ -40,6 +40,15 @@ trap '' int trap +# exit 0 in exit trap should set exit status +( +set -e +trap 'exit 0' EXIT +false +echo bad +) +echo $? + # hmmm...should this set the handling to SIG_IGN for children, too? trap '' USR2 ./trap1.sub |