13 lines
152 B
Text
13 lines
152 B
Text
|
|
# framework to test new `wait -n' option that waits for any job to finish
|
||
|
|
|
||
|
|
set -m
|
||
|
|
|
||
|
|
sleep 20 &
|
||
|
|
{ sleep 5; exit 12; } &
|
||
|
|
sleep 20 &
|
||
|
|
|
||
|
|
wait -n
|
||
|
|
echo $?
|
||
|
|
|
||
|
|
jobs
|