Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Dec 2010 23:56:03 +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: r216747 - head/tools/regression/bin/sh/expansion
Message-ID:  <201012272356.oBRNu3iE040359@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Mon Dec 27 23:56:03 2010
New Revision: 216747
URL: http://svn.freebsd.org/changeset/base/216747

Log:
  sh: Add a testcase for cmdsubst errors that already works properly.
  If a command substitution consists of one special builtin and there is a
  redirection error, this should not abort the outer shell.
  It was fixed in r201366 by ignoring special builtin properties for command
  substitutions consisting of one builtin.

Added:
  head/tools/regression/bin/sh/expansion/cmdsubst4.0   (contents, props changed)

Added: head/tools/regression/bin/sh/expansion/cmdsubst4.0
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/tools/regression/bin/sh/expansion/cmdsubst4.0	Mon Dec 27 23:56:03 2010	(r216747)
@@ -0,0 +1,4 @@
+# $FreeBSD$
+
+exec 2>/dev/null
+! y=$(: </var/empty/nonexistent)



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