summaryrefslogtreecommitdiffstats
path: root/tools/regression
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-03-14 13:51:12 +0000
committerjilles <jilles@FreeBSD.org>2010-03-14 13:51:12 +0000
commitb9152e6b95f7273c5f4ab0f40fb6270c9220d2eb (patch)
tree0edd3271798f48f1e5f97a4f90ac23bdbbfa804f /tools/regression
parenta13f0a99423fe7a287aff093862a2ab3e6085c93 (diff)
downloadFreeBSD-src-b9152e6b95f7273c5f4ab0f40fb6270c9220d2eb.zip
FreeBSD-src-b9152e6b95f7273c5f4ab0f40fb6270c9220d2eb.tar.gz
sh: Add test for redirection error on subshell (should not abort).
Diffstat (limited to 'tools/regression')
-rw-r--r--tools/regression/bin/sh/errors/redirection-error5.05
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/errors/redirection-error5.0 b/tools/regression/bin/sh/errors/redirection-error5.0
new file mode 100644
index 0000000..1fcd47e
--- /dev/null
+++ b/tools/regression/bin/sh/errors/redirection-error5.0
@@ -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
OpenPOWER on IntegriCloud