summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-misc/exitcode_trap5.tests
blob: 332a064632a3e1d2e271189a74df213e9123265b (plain)
1
2
3
4
5
6
7
8
9
10
# "return" in trap sets $? after trap...
# ...but not a nested one!
g() { echo Nested; return 22; }
trap "echo TERM;false;g" term
f() {
	(kill $$) &
	sleep 1
}
f
echo Zero:$?