OILS
/
spec
/
testdata
/ builtin-trap-usr1.sh
View on Github
|
oilshell.org
12 lines, 6 significant
1
2
kill=$(command -v kill)
3
4
$SH -c
'
trap "echo usr1" USR1; sleep 0.2
'
&
5
6
sleep 0.1
7
8
$kill -USR1 $!
9
10
wait
11
12
echo status=$?