Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Nov 2013 22:45:49 +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: r258533 - head/tools/regression/bin/sh/execution
Message-ID:  <201311242245.rAOMjnPL049935@svn.freebsd.org>

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



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