summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-11-24 22:45:49 +0000
committerjilles <jilles@FreeBSD.org>2013-11-24 22:45:49 +0000
commit705e77596148b630a7127ae65307cd6e01cb857c (patch)
treeeeca1aa4c430d5e8b90fdec2b069dfbac5c42bab
parentc1432a7d8da354f23ff21054e04bb93f21e0b7aa (diff)
downloadFreeBSD-src-705e77596148b630a7127ae65307cd6e01cb857c.zip
FreeBSD-src-705e77596148b630a7127ae65307cd6e01cb857c.tar.gz
sh: Add more tests for the </dev/null implicit in a background command.
-rw-r--r--tools/regression/bin/sh/execution/bg7.05
-rw-r--r--tools/regression/bin/sh/execution/bg8.05
-rw-r--r--tools/regression/bin/sh/execution/bg9.05
3 files changed, 15 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/execution/bg7.0 b/tools/regression/bin/sh/execution/bg7.0
new file mode 100644
index 0000000..f771edc
--- /dev/null
+++ b/tools/regression/bin/sh/execution/bg7.0
@@ -0,0 +1,5 @@
+# $FreeBSD$
+# The redirection does not apply to the background command, and therefore
+# does not override the implicit </dev/null.
+
+echo bad | ${SH} -c '</dev/null; { cat & wait; }'
diff --git a/tools/regression/bin/sh/execution/bg8.0 b/tools/regression/bin/sh/execution/bg8.0
new file mode 100644
index 0000000..33667cb
--- /dev/null
+++ b/tools/regression/bin/sh/execution/bg8.0
@@ -0,0 +1,5 @@
+# $FreeBSD$
+# The redirection does not apply to the background command, and therefore
+# does not override the implicit </dev/null.
+
+echo bad | ${SH} -c 'command eval \) </dev/null 2>/dev/null; { cat & wait; }'
diff --git a/tools/regression/bin/sh/execution/bg9.0 b/tools/regression/bin/sh/execution/bg9.0
new file mode 100644
index 0000000..64fde3e
--- /dev/null
+++ b/tools/regression/bin/sh/execution/bg9.0
@@ -0,0 +1,5 @@
+# $FreeBSD$
+# The redirection does not apply to the background command, and therefore
+# does not override the implicit </dev/null.
+
+echo bad | ${SH} -c 'command eval eval \\\) \</dev/null 2>/dev/null; { cat & wait; }'
OpenPOWER on IntegriCloud