Blob Blame History Raw
# 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