Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
exec {_Dbg_new_fd}<>&-
- X-seq: zsh-workers 26133
- From: "Rocky Bernstein" <rocky.bernstein@xxxxxxxxx>
- To: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- Subject: exec {_Dbg_new_fd}<>&-
- Date: Thu, 11 Dec 2008 20:09:50 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=/aU2JTL56nCOZ+XgZbHUgDwOqbq7gskYpoXYpEG/dwA=; b=le1xiuxBo/PE0cgAvh3eqYrkvIBkf4yLgQz1sHI0tXwLZr7FvZllGMUAQhEUF/Bmhw X7pPdzDLxy5MKhU140sZ/nyb3yrUnyp+IA7faUMQrt+m3PbDJILy6JSAQURmcniN0gJE P4MA8pVGFcYnV6rgZ/sBYgJ7k28dVDtyf6tAQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=tZULKHB66LlUQkJTS+wDhw4m0St5SHyId6/jGUWTjf3pi5v71I9ycGp1thWaOrh5CS OcZ10eUWOQ6IvVtfqXZDYKpGXr+nZ+BzyOHlCpQL/ZQO+WZuJjNs+Ic+vhkBFONgYWU2 hFJjb5AQ2kkIxJGKaTYPFMv858FvVZ2kwhE5c=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
In all of the terminal detection stuff I noticed that running script
bug.zsh with this contents:
exec {_Dbg_fd}<>$TTY
exec {_Dbg_fd}<>&-
prints this:
bug.zsh:2: parse error near `&'
I think this agrees with ksh93t
However if I change the offending line to:
exec {_Dbg_fd}<&-
exec {_Dbg_fd}>&-
I get:
bug.zsh:3: file descriptor 12 out of range, not closed. And ksh
doesn't seem to complain.
I gather that closing _Dbg_fd for input also closes it for output.
Is this the expected or okay?
Thanks.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author