Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Nov 2013 21:50:13 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r258489 - head/tools/regression/bin/sh/execution
Message-ID:  <201311222150.rAMLoDJd065279@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311222150.rAMLoDJd065279>