Mike Frysinger | fd303b1 | 2009-03-29 09:54:40 +0000 | [diff] [blame] | 1 | # no output -- default state |
2 | echo ___ | ||||
3 | trap | ||||
4 | |||||
5 | # assign some traps | ||||
6 | echo ___ | ||||
7 | trap "a" EXIT INT USR1 USR2 | ||||
8 | |||||
9 | # show them all | ||||
10 | echo ___ | ||||
11 | trap | ||||
12 | |||||
13 | # clear one | ||||
14 | echo ___ | ||||
15 | trap 0 INT | ||||
16 | echo ___ | ||||
17 | trap | ||||
18 | |||||
19 | # clear another | ||||
20 | echo ___ | ||||
21 | trap "-" USR1 | ||||
22 | echo ___ | ||||
23 | trap |