1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-12-09 18:51:46 +01:00

21134: bad file descriptor error message system variation.

Hey, six nouns in a row!
This commit is contained in:
Peter Stephenson 2005-04-12 17:39:19 +00:00
parent b3f8e32e5c
commit bfdccce23e
2 changed files with 8 additions and 1 deletions

View file

@ -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.

View file

@ -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