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

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