summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-10-24 20:09:49 +0000
committerjilles <jilles@FreeBSD.org>2010-10-24 20:09:49 +0000
commitc487e17b8fb428abe374fa4820d1b3628c383af5 (patch)
treec5c8880c89a62af2e313fd4965a5f0a84648b50e /tools
parenta2f958382a8f42c779dc6a8648379e68138a8241 (diff)
downloadFreeBSD-src-c487e17b8fb428abe374fa4820d1b3628c383af5.zip
FreeBSD-src-c487e17b8fb428abe374fa4820d1b3628c383af5.tar.gz
sh: Check whether dup2 was successful for >&FD and <&FD.
A failure (usually caused by FD not being open) is a redirection error. Exp-run done by: pav (with some other sh(1) changes)
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/bin/sh/execution/redir4.04
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/execution/redir4.0 b/tools/regression/bin/sh/execution/redir4.0
new file mode 100644
index 0000000..57054c1
--- /dev/null
+++ b/tools/regression/bin/sh/execution/redir4.0
@@ -0,0 +1,4 @@
+# $FreeBSD$
+
+{ echo bad 0>&3; } 2>/dev/null 3>/dev/null 3>&-
+exit 0
OpenPOWER on IntegriCloud