Gitiles
Code Review
Sign In
gerrit.nordix.org
/
codeaurora
/
busybox
/
947a22b33262c93e5c50286b723b9086a33a4c1f
/
.
/
shell
/
hush_test
/
hush-misc
/
exitcode_trap3.tests
blob: 98745e463d2a027dd38636ad7e1f09c4ce11d24b [
file
] [
log
] [
blame
]
# "return" in trap should not use last command's exitcode,
# but exitcode on entering the trap.
trap
"echo TERM;return"
term
f
()
{
(
sleep
1
;
kill $$
)
&
until
(
exit
42
)
do
(
exit
42
);
done
}
f
echo
42
:
$
?