source: trunk/essentials/app-shells/bash/tests/trap.right

Last change on this file was 3228, checked in by bird, 18 years ago

bash 3.1

File size: 1.8 KB
Line 
1subshell exit
2trap -- 'echo exiting' EXIT
3trap -- 'echo aborting' SIGHUP
4trap -- 'echo aborting' SIGINT
5trap -- 'echo aborting' SIGQUIT
6trap -- 'echo aborting' SIGABRT
7trap -- 'echo aborting' SIGTERM
8[20] debug
9debug line
10[22] debug
11trap -- 'echo exiting' EXIT
12trap -- 'echo aborting' SIGHUP
13trap -- 'echo aborting' SIGINT
14trap -- 'echo aborting' SIGQUIT
15trap -- 'echo aborting' SIGABRT
16trap -- 'echo aborting' SIGTERM
17trap -- 'echo [$LINENO] debug' DEBUG
18[24] debug
19func[16] funcdebug
20funcdebug line
21[26] debug
22trap -- 'echo exiting' EXIT
23trap -- 'echo aborting' SIGHUP
24trap -- 'echo aborting' SIGINT
25trap -- 'echo aborting' SIGQUIT
26trap -- 'echo aborting' SIGABRT
27trap -- 'echo aborting' SIGTERM
28trap -- 'echo [$LINENO] debug' DEBUG
29[28] debug
30./trap.tests[33] debug
31./trap.tests[34] debug
32func2[30] debug
33func2[31] debug
34func2debug line
35./trap.tests[36] debug
36./trap.tests[38] debug
37trap -- 'echo exiting' EXIT
38trap -- 'echo aborting' SIGHUP
39trap -- 'echo aborting' SIGINT
40trap -- 'echo aborting' SIGQUIT
41trap -- 'echo aborting' SIGABRT
42trap -- 'echo aborting' SIGTERM
43trap -- '' DEBUG
44trap -- 'echo exiting' EXIT
45trap -- 'echo aborting' SIGHUP
46trap -- 'echo aborting' SIGINT
47trap -- 'echo aborting' SIGQUIT
48trap -- 'echo aborting' SIGABRT
49trap -- 'echo aborting' SIGTERM
50trap -- 'echo exiting' EXIT
51trap -- '' SIGINT
52trap -- 'echo aborting' SIGQUIT
53trap -- 'echo aborting' SIGABRT
54trap -- 'echo aborting' SIGTERM
550
56ERRTRAP
57ERRTRAP
58ERRTRAP
59after falses
60if negation ok
61after negation
62after while
63before false in trap2a.sub
64after false in trap2a.sub
65command substitution
66caught a child death
67caught a child death
68caught a child death
69trap -- 'echo caught a child death' SIGCHLD
70trap -- 'echo exiting' EXIT
71trap -- 'echo aborting' SIGABRT
72trap -- 'echo caught a child death' SIGCHLD
73trap -- '' SIGUSR2
74exiting
Note: See TracBrowser for help on using the repository browser.