trap -- 'echo aborting' SIGABRT
trap -- 'echo aborting' SIGTERM
0
+trap -- '' SIGUSR2
ERRTRAP
ERRTRAP
ERRTRAP
before false in trap2a.sub
after false in trap2a.sub
command substitution
++[6] echo 1
+1
++[7] echo 2
+2
++[8] echo 3
++[8] cat
++[8] false
+++[8] echo trap: 8
+trap: 8
++[9] echo 4
+4
+exit subshell 1
+current shell
+exit subshell 2
+current shell
+current shell
+current shell
+outside 1
+outside 2
+outside 3
+outside 4
+sleep 2
+wait $!
+exit
+in trap EXIT
+sleep 2
+wait $!
+exit
+in trap EXIT
caught a child death
caught a child death
caught a child death