svn commit: r258533 - head/tools/regression/bin/sh/execution
Jilles Tjoelker
jilles at FreeBSD.org
Sun Nov 24 22:45:50 UTC 2013
Author: jilles
Date: Sun Nov 24 22:45:49 2013
New Revision: 258533
URL: http://svnweb.freebsd.org/changeset/base/258533
Log:
sh: Add more tests for the </dev/null implicit in a background command.
Added:
head/tools/regression/bin/sh/execution/bg7.0 (contents, props changed)
head/tools/regression/bin/sh/execution/bg8.0 (contents, props changed)
head/tools/regression/bin/sh/execution/bg9.0 (contents, props changed)
Added: head/tools/regression/bin/sh/execution/bg7.0
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/tools/regression/bin/sh/execution/bg7.0 Sun Nov 24 22:45:49 2013 (r258533)
@@ -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; }'
Added: head/tools/regression/bin/sh/execution/bg8.0
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/tools/regression/bin/sh/execution/bg8.0 Sun Nov 24 22:45:49 2013 (r258533)
@@ -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; }'
Added: head/tools/regression/bin/sh/execution/bg9.0
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/tools/regression/bin/sh/execution/bg9.0 Sun Nov 24 22:45:49 2013 (r258533)
@@ -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; }'
More information about the svn-src-all
mailing list