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

12 lines, 6 significant
1
2kill=$(command -v kill)
3
4$SH -c 'trap "echo usr1" USR1; sleep 0.2' &
5
6sleep 0.1
7
8$kill -USR1 $!
9
10wait
11
12echo status=$?