summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Test/A04redirect.ztst6
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 560902b01..cfc116143 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2005-04-12 Peter Stephenson <pws@csr.com>
+ * 21134: Test/A04redirect.ztst: error for bad file descriptor
+ can vary between systems.
+
* 21133: Doc/Zsh/redirect.yo, Src/exec.c, Src/parse.c, Src/text.c,
Src/zsh.h, Test/A04redirect.ztst: New {myfd}> syntax for
allocating file descriptors.
diff --git a/Test/A04redirect.ztst b/Test/A04redirect.ztst
index b85d6ecf5..4ed65e189 100644
--- a/Test/A04redirect.ztst
+++ b/Test/A04redirect.ztst
@@ -3,6 +3,10 @@
%prep
mkdir redir.tmp && cd redir.tmp
+ myfd=99
+ (echo >&$myfd) 2>msg
+ bad_fd_msg="${$(<msg)##*:}"
+
%test
print 'This is file redir' >redir && cat redir
@@ -247,7 +251,7 @@
exec {myfd}>&-
print This message should disappear >&$myfd
1q:Closing file descriptor using brace syntax
-?(eval):2: $myfd: bad file descriptor
+?(eval):2: $myfd:$bad_fd_msg
typeset -r myfd
echo This should not appear {myfd}>nologfile