busybox/shell/hush_test/hush-misc/exitcode_trap4.tests

9 lines
149 B
Plaintext
Executable File

# "return" in trap sets $? after trap
trap "echo TERM;return 11" term
f() {
(sleep 1; kill $$) &
until (exit 42) do (exit 42); done
}
f
echo 11:$?