diff options
author | jilles <jilles@FreeBSD.org> | 2010-10-24 20:09:49 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-10-24 20:09:49 +0000 |
commit | c487e17b8fb428abe374fa4820d1b3628c383af5 (patch) | |
tree | c5c8880c89a62af2e313fd4965a5f0a84648b50e /tools | |
parent | a2f958382a8f42c779dc6a8648379e68138a8241 (diff) | |
download | FreeBSD-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.0 | 4 |
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 |