]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/jobs6.sub
bash-5.0 distribution sources and documentation
[thirdparty/bash.git] / tests / jobs6.sub
CommitLineData
d233b485
CR
1# framework to test `wait -f' which forces wait until a job exits
2set -o monitor
3sleep 5 &
4child1=$!
5
6( sleep 1; kill -STOP $child1 ; sleep 1 ; kill -CONT $child1 )&
7
8child2=$!
9
10wait -f %1
11echo child1 exit status $?
12
13wait $child2
14exit 0