]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/regression/bin/sh/builtins/wait2.0
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / regression / bin / sh / builtins / wait2.0
1 # $FreeBSD$
2
3 failures=
4 failure() {
5         echo "Error at line $1" >&2
6         failures=x$failures
7 }
8
9 for i in 1 2 3 4 5 6 7 8 9 10; do
10         exit $i &
11 done
12 wait || failure $LINENO
13 wait || failure $LINENO
14
15 test -z "$failures"