2 trap -- 'echo exiting' EXIT
3 trap -- 'echo aborting' SIGHUP
4 trap -- 'echo aborting' SIGINT
5 trap -- 'echo aborting' SIGQUIT
6 trap -- 'echo aborting' SIGABRT
7 trap -- 'echo aborting' SIGTERM
11 trap -- 'echo exiting' EXIT
12 trap -- 'echo aborting' SIGHUP
13 trap -- 'echo aborting' SIGINT
14 trap -- 'echo aborting' SIGQUIT
15 trap -- 'echo aborting' SIGABRT
16 trap -- 'echo aborting' SIGTERM
17 trap -- 'echo [$LINENO] debug' DEBUG
21 ./trap.tests[39] funcdebug
22 trap -- 'echo exiting' EXIT
23 trap -- 'echo aborting' SIGHUP
24 trap -- 'echo aborting' SIGINT
25 trap -- 'echo aborting' SIGQUIT
26 trap -- 'echo aborting' SIGABRT
27 trap -- 'echo aborting' SIGTERM
28 trap -- 'echo ${FUNCNAME:-$0}[$LINENO] funcdebug' DEBUG
29 ./trap.tests[41] funcdebug
30 ./trap.tests[46] debug
31 ./trap.tests[47] debug
35 ./trap.tests[49] debug
36 ./trap.tests[51] debug
37 trap -- 'echo exiting' EXIT
38 trap -- 'echo aborting' SIGHUP
39 trap -- 'echo aborting' SIGINT
40 trap -- 'echo aborting' SIGQUIT
41 trap -- 'echo aborting' SIGABRT
42 trap -- 'echo aborting' SIGTERM
44 trap -- 'echo exiting' EXIT
45 trap -- 'echo aborting' SIGHUP
46 trap -- 'echo aborting' SIGINT
47 trap -- 'echo aborting' SIGQUIT
48 trap -- 'echo aborting' SIGABRT
49 trap -- 'echo aborting' SIGTERM
50 trap -- 'echo exiting' EXIT
52 trap -- 'echo aborting' SIGQUIT
53 trap -- 'echo aborting' SIGABRT
54 trap -- 'echo aborting' SIGTERM
64 before false in trap2a.sub
65 after false in trap2a.sub
111 trap -- 'echo caught a child death' SIGCHLD
112 trap -- 'echo exiting' EXIT
113 trap -- 'echo aborting' SIGABRT
114 trap -- 'echo caught a child death' SIGCHLD