Files
bash/tests/jobs5.sub
T

13 lines
152 B
Plaintext

# 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