blob: 332a064632a3e1d2e271189a74df213e9123265b [file] [log] [blame]
Denys Vlasenkobb095f42020-02-20 16:37:59 +01001# "return" in trap sets $? after trap...
2# ...but not a nested one!
3g() { echo Nested; return 22; }
4trap "echo TERM;false;g" term
5f() {
6 (kill $$) &
7 sleep 1
8}
9f
10echo Zero:$?