projects
/
platform
/
upstream
/
bash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported from ../bash-2.05.tar.gz.
[platform/upstream/bash.git]
/
tests
/
trap.tests
diff --git
a/tests/trap.tests
b/tests/trap.tests
index
bcf16e5
..
24f25ab
100644
(file)
--- a/
tests/trap.tests
+++ b/
tests/trap.tests
@@
-40,6
+40,15
@@
trap '' int
trap
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
# hmmm...should this set the handling to SIG_IGN for children, too?
trap '' USR2
./trap1.sub