mirror of
https://github.com/sheumann/hush.git
synced 2024-10-29 20:27:40 +00:00
24 lines
233 B
Plaintext
24 lines
233 B
Plaintext
|
# 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
|