projects
/
oweals
/
busybox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add test cases for `trap` ... but disabled for now until trap support is committed
[oweals/busybox.git]
/
shell
/
hush_test
/
hush-trap
/
usage.tests
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