diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-04-12 17:39:19 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-04-12 17:39:19 +0000 |
commit | bfdccce23e52592e144654fd6e87f7b9cfaa65b1 (patch) | |
tree | 0e700f9c9ec84920039ae14f1d41a72d971d0b8e | |
parent | b3f8e32e5cf5771eb5efb1e11c38dab377b14432 (diff) | |
download | zsh-bfdccce23e52592e144654fd6e87f7b9cfaa65b1.tar.gz zsh-bfdccce23e52592e144654fd6e87f7b9cfaa65b1.tar.xz zsh-bfdccce23e52592e144654fd6e87f7b9cfaa65b1.zip |
21134: bad file descriptor error message system variation.
Hey, six nouns in a row!
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Test/A04redirect.ztst | 6 |
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 |