mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-27 15:43:18 +02:00
15 lines
264 B
Bash
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
|