svn commit: r258489 - head/tools/regression/bin/sh/execution
Jilles Tjoelker
jilles at FreeBSD.org
Fri Nov 22 21:50:14 UTC 2013
Author: jilles
Date: Fri Nov 22 21:50:13 2013
New Revision: 258489
URL: http://svnweb.freebsd.org/changeset/base/258489
Log:
sh: Add tests for the </dev/null implicit in a background command.
Added:
head/tools/regression/bin/sh/execution/bg5.0 (contents, props changed)
head/tools/regression/bin/sh/execution/bg6.0 (contents, props changed)
head/tools/regression/bin/sh/execution/bg6.0.stdout (contents, props changed)
Added: head/tools/regression/bin/sh/execution/bg5.0
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/tools/regression/bin/sh/execution/bg5.0 Fri Nov 22 21:50:13 2013 (r258489)
@@ -0,0 +1,4 @@
+# $FreeBSD$
+# A background command has an implicit </dev/null redirection.
+
+echo bad | ${SH} -c '{ cat & wait; }'
Added: head/tools/regression/bin/sh/execution/bg6.0
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/tools/regression/bin/sh/execution/bg6.0 Fri Nov 22 21:50:13 2013 (r258489)
@@ -0,0 +1,4 @@
+# $FreeBSD$
+# The redirection overrides the </dev/null implicit in a background command.
+
+echo yes | ${SH} -c '{ cat & wait; } </dev/stdin'
Added: head/tools/regression/bin/sh/execution/bg6.0.stdout
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/tools/regression/bin/sh/execution/bg6.0.stdout Fri Nov 22 21:50:13 2013 (r258489)
@@ -0,0 +1 @@
+yes
More information about the svn-src-all
mailing list