about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-04-12 17:39:19 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-04-12 17:39:19 +0000
commitbfdccce23e52592e144654fd6e87f7b9cfaa65b1 (patch)
tree0e700f9c9ec84920039ae14f1d41a72d971d0b8e /Test
parentb3f8e32e5cf5771eb5efb1e11c38dab377b14432 (diff)
downloadzsh-bfdccce23e52592e144654fd6e87f7b9cfaa65b1.tar.gz
zsh-bfdccce23e52592e144654fd6e87f7b9cfaa65b1.tar.xz
zsh-bfdccce23e52592e144654fd6e87f7b9cfaa65b1.zip
21134: bad file descriptor error message system variation.
Hey, six nouns in a row!
Diffstat (limited to 'Test')
-rw-r--r--Test/A04redirect.ztst6
1 files changed, 5 insertions, 1 deletions
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