summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-03-15 20:29:31 +0000
committerjilles <jilles@FreeBSD.org>2013-03-15 20:29:31 +0000
commitd967c25f5c41bb5547a03c9b1ce042cb778c54cc (patch)
tree84d8e3b2a4fff8196acae606e87e71bcee71109c /tools
parente3bfa0687cf43740ac4bf886a8089374386b1d0d (diff)
downloadFreeBSD-src-d967c25f5c41bb5547a03c9b1ce042cb778c54cc.zip
FreeBSD-src-d967c25f5c41bb5547a03c9b1ce042cb778c54cc.tar.gz
sh: Recognize "--" and explicitly reject options in wait builtin.
If syntactically invalid job identifiers are to be taken as jobs that exited with status 127, this should not apply to options, so that we can add options later if need be.
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/bin/sh/builtins/wait6.03
-rw-r--r--tools/regression/bin/sh/builtins/wait7.04
2 files changed, 7 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/builtins/wait6.0 b/tools/regression/bin/sh/builtins/wait6.0
new file mode 100644
index 0000000..20e3c68
--- /dev/null
+++ b/tools/regression/bin/sh/builtins/wait6.0
@@ -0,0 +1,3 @@
+# $FreeBSD$
+
+wait --
diff --git a/tools/regression/bin/sh/builtins/wait7.0 b/tools/regression/bin/sh/builtins/wait7.0
new file mode 100644
index 0000000..0fb092f
--- /dev/null
+++ b/tools/regression/bin/sh/builtins/wait7.0
@@ -0,0 +1,4 @@
+# $FreeBSD$
+
+: &
+wait -- $!
OpenPOWER on IntegriCloud