svn commit: r205153 - head/tools/regression/bin/sh/errors

Jilles Tjoelker jilles at FreeBSD.org
Sun Mar 14 13:51:13 UTC 2010


Author: jilles
Date: Sun Mar 14 13:51:12 2010
New Revision: 205153
URL: http://svn.freebsd.org/changeset/base/205153

Log:
  sh: Add test for redirection error on subshell (should not abort).

Added:
  head/tools/regression/bin/sh/errors/redirection-error5.0   (contents, props changed)

Added: head/tools/regression/bin/sh/errors/redirection-error5.0
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/tools/regression/bin/sh/errors/redirection-error5.0	Sun Mar 14 13:51:12 2010	(r205153)
@@ -0,0 +1,5 @@
+# $FreeBSD$
+# A redirection error on a subshell should not abort the shell.
+exec 2>/dev/null
+( echo bad ) </var/empty/x
+exit 0


More information about the svn-src-head mailing list