]> git.saurik.com Git - apple/shell_cmds.git/blame - sh/tests/builtins/wait2.0
shell_cmds-216.60.1.tar.gz
[apple/shell_cmds.git] / sh / tests / builtins / wait2.0
CommitLineData
deb63bfb 1# $FreeBSD: head/bin/sh/tests/builtins/wait2.0 208476 2010-05-23 22:10:20Z jilles $
71aad674
A
2
3failures=
4failure() {
5 echo "Error at line $1" >&2
6 failures=x$failures
7}
8
9for i in 1 2 3 4 5 6 7 8 9 10; do
10 exit $i &
11done
12wait || failure $LINENO
13wait || failure $LINENO
14
15test -z "$failures"