Gitiles
Code Review
Sign In
gerrit.nordix.org
/
codeaurora
/
busybox
/
137864f559e7eff1f929958d3999359c7070ed91
/
.
/
shell
/
ash_test
/
ash-misc
/
exitcode_trap4.tests
blob: 36dba90bdbcd90bb86ba87f0619f7f1ed40a7cdf [
file
] [
log
] [
blame
]
Denys Vlasenko
bb095f4
2020-02-20 16:37:59 +0100
[
diff
] [
blame
]
1
# "return" in trap sets $? after trap
2
trap
"echo TERM;return 11"
term
3
f
()
{
4
(
sleep
1
;
kill $$
)
&
5
until
(
exit
42
)
do
(
exit
42
);
done
6
}
7
f
8
echo
11
:
$
?