diff options
author | jilles <jilles@FreeBSD.org> | 2013-06-05 19:08:22 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-06-05 19:08:22 +0000 |
commit | dbbdb077d82c797a0eda74194fcf16f3264030ab (patch) | |
tree | 2692ea400c79babd9dc476ddcc0fe8acc344ccae /tools/regression | |
parent | 018a784d3f43677b1c8a81718f963490127f4b99 (diff) | |
download | FreeBSD-src-dbbdb077d82c797a0eda74194fcf16f3264030ab.zip FreeBSD-src-dbbdb077d82c797a0eda74194fcf16f3264030ab.tar.gz |
sh: Allow multiple operands in wait builtin.
This is only part of the PR; the behaviour for unknown/invalid pids/jobs
remains unchanged (aborts the builtin with status 2).
PR: 176916
Submitted by: Vadim Goncharov
Diffstat (limited to 'tools/regression')
-rw-r--r-- | tools/regression/bin/sh/builtins/wait8.0 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/builtins/wait8.0 b/tools/regression/bin/sh/builtins/wait8.0 new file mode 100644 index 0000000..b59ff59 --- /dev/null +++ b/tools/regression/bin/sh/builtins/wait8.0 @@ -0,0 +1,7 @@ +# $FreeBSD$ + +exit 44 & p44=$! +exit 45 & p45=$! +exit 7 & p7=$! +wait "$p44" "$p7" "$p45" +[ "$?" = 45 ] |