OILS / spec / testdata / builtin-trap-usr1.sh View on Github | oilshell.org

12 lines, 5 significant
1
2# Why don't other shells run this trap? It's not a subshell
3$SH -c 'trap "echo usr1" USR1; sleep 0.1' &
4#$SH -c 'trap "echo int" INT; sleep 0.1' &
5
6sleep 0.05
7
8$(which kill) -USR1 $!
9
10wait
11
12echo status=$?