projects
/
oweals
/
busybox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
hush: implement "return NUM in trap sets $? after trap"
[oweals/busybox.git]
/
shell
/
hush_test
/
hush-misc
/
exitcode_trap5.tests
1
# "return" in trap sets $? after trap...
2
# ...but not a nested one!
3
g() { echo Nested; return 22; }
4
trap "echo TERM;false;g" term
5
f() {
6
(kill $$) &
7
sleep 1
8
}
9
f
10
echo Zero:$?