~ubuntu-branches/ubuntu/trusty/bash/trusty-security

1
2
3
4
5
6
7
8
9
10
11
12
# 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