Sign in
coral
/
busybox
/
0356607264b8e1476d98a81667488ba1d6295d23
/
.
/
shell
/
hush_test
/
hush-misc
/
exitcode_trap5.tests
blob: 332a064632a3e1d2e271189a74df213e9123265b [
file
] [
log
] [
blame
]
# "return" in trap sets $? after trap...
# ...but not a nested one!
g
()
{
echo
Nested
;
return
22
;
}
trap
"echo TERM;false;g"
term
f
()
{
(
kill $$
)
&
sleep
1
}
f
echo
Zero
:
$
?