aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-trap/usage.tests
blob: d29c6e74aaf4c91be24a02bb114f7362c42bc5ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# no output -- default state
echo ___
trap

# assign some traps
echo ___
trap "a" EXIT INT USR1 USR2

# show them all
echo ___
trap

# clear one
echo ___
trap 0 INT
echo ___
trap

# clear another
echo ___
trap "-" USR1
echo ___
trap