aboutsummaryrefslogtreecommitdiffstats
path: root/tests/redir.tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/redir.tests')
-rw-r--r--tests/redir.tests5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/redir.tests b/tests/redir.tests
index 4e58754..3e6e876 100644
--- a/tests/redir.tests
+++ b/tests/redir.tests
@@ -140,6 +140,11 @@ cd
EOF
echo $l2
+# These should not echo anything -- bug in versions before 2.04
+( ( echo hello 1>&3 ) 3>&1 ) >/dev/null 2>&1
+
+( ( echo hello 1>&3 ) 3>&1 ) >/dev/null 2>&1 | cat
+
# in posix mode, non-interactive shells are not allowed to perform
# filename expansion on input redirections, even if they expand to
# a single filename