Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: multi-digit file descriptors



On 2015-02-11 09:27:51 -0800, Bart Schaefer wrote:
> On Feb 11, 2015 8:28 AM, "Vincent Lefevre" <vincent@xxxxxxxxxx> wrote:
> > The behavior of dash and ksh93 is similar to zsh. But is there any
> > reason?
> 
> Zsh reserves descriptors 10 and up for internal use; for example, 10 is
> nearly always a copy of the original input terminal in an interactive shell.

But this doesn't explain the error message, in particular...

On 2015-02-11 20:47:09 +0000, Stephane Chazelas wrote:
> Related discussion on the austin-group mailing list:
> 
> http://thread.gmane.org/gmane.comp.standards.posix.austin.general/10094

which mentions the use of 09. With zsh:

( echo foo >&09; ) 09>my_file

still gives an error:

redir:4: parse error near `09'

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Messages sorted by: Reverse Date, Date, Thread, Author