mirror of
https://git.busybox.net/busybox
synced 2026-02-07 20:50:26 +00:00
7 lines
150 B
Text
7 lines
150 B
Text
|
|
# "exit" in trap should not use last command's exitcode,
|
||
|
|
# but exitcode on entering the trap.
|
||
|
|
(trap "echo Trapped; exit" EXIT
|
||
|
|
(exit 1)
|
||
|
|
)
|
||
|
|
echo One:$?
|