mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-10 19:11:17 +01:00
21134: bad file descriptor error message system variation.
Hey, six nouns in a row!
This commit is contained in:
parent
b3f8e32e5c
commit
bfdccce23e
2 changed files with 8 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
2005-04-12 Peter Stephenson <pws@csr.com>
|
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,
|
* 21133: Doc/Zsh/redirect.yo, Src/exec.c, Src/parse.c, Src/text.c,
|
||||||
Src/zsh.h, Test/A04redirect.ztst: New {myfd}> syntax for
|
Src/zsh.h, Test/A04redirect.ztst: New {myfd}> syntax for
|
||||||
allocating file descriptors.
|
allocating file descriptors.
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,10 @@
|
||||||
%prep
|
%prep
|
||||||
mkdir redir.tmp && cd redir.tmp
|
mkdir redir.tmp && cd redir.tmp
|
||||||
|
|
||||||
|
myfd=99
|
||||||
|
(echo >&$myfd) 2>msg
|
||||||
|
bad_fd_msg="${$(<msg)##*:}"
|
||||||
|
|
||||||
%test
|
%test
|
||||||
|
|
||||||
print 'This is file redir' >redir && cat redir
|
print 'This is file redir' >redir && cat redir
|
||||||
|
|
@ -247,7 +251,7 @@
|
||||||
exec {myfd}>&-
|
exec {myfd}>&-
|
||||||
print This message should disappear >&$myfd
|
print This message should disappear >&$myfd
|
||||||
1q:Closing file descriptor using brace syntax
|
1q:Closing file descriptor using brace syntax
|
||||||
?(eval):2: $myfd: bad file descriptor
|
?(eval):2: $myfd:$bad_fd_msg
|
||||||
|
|
||||||
typeset -r myfd
|
typeset -r myfd
|
||||||
echo This should not appear {myfd}>nologfile
|
echo This should not appear {myfd}>nologfile
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue