]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/trap.tests
Imported from ../bash-2.05.tar.gz.
[thirdparty/bash.git] / tests / trap.tests
index bcf16e5249aa0fd045b3d9719709a0641ec1948a..24f25aba1e86b663c8ee599581395be740ff247c 100644 (file)
@@ -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