Files
bash/tests/cracauer-testsuite/test09.sh
T
2011-12-03 12:52:47 -05:00

15 lines
264 B
Bash

#!./testshell
trap 'echo I am a trap' 2
echo 'Try to break wait using SIGINT before wc completes'
echo 'After you break wait, it should print "I am a trap"'
echo 'and then "Going on"'
echo 'wc &'
gzip < /kernel | wc &
p=$!
echo wait
wait
echo "Going on"
kill $p