Gitiles
Code Review
Sign In
gerrit.nordix.org
/
codeaurora
/
busybox
/
4ccddc8fb37b7f585c2d62f6e61ad17295399aff
/
.
/
shell
/
ash_test
/
ash-misc
/
exitcode_trap1.tests
blob: c35b6b3916dfdf3fdd15711537675991e3753c66 [
file
] [
log
] [
blame
]
Denys Vlasenko
4ccddc8
2020-02-14 17:27:18 +0100
[
diff
] [
blame^
]
1
# "exit" in trap should not use last command's exitcode,
2
# but exitcode on entering the trap.
3
(
trap
"echo Trapped; exit"
EXIT
4
(
exit
1
)
5
)
6
echo
One
:
$
?