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

Re: multi-digit file descriptors



2015-02-11 17:26:37 +0100, Vincent Lefevre:
> Contrary to bash and mksh, zsh doesn't support file descriptors with
> multiple digits. Considered the following file "redir".
> 
> ----------------------------------------
> ( echo foo >&9; ) 9>my_file
> cat my_file
> 
> ( echo bar >&10; ) 10>my_file
> cat my_file
> ----------------------------------------
> 
> xvii% bash redir
> foo
> bar
> xvii% mksh redir
> foo
> bar
> xvii% zsh redir
> foo
> redir:4: parse error near `10'
> 
> The behavior of dash and ksh93 is similar to zsh. But is there any
> reason?
> 
> BTW, POSIX doesn't seem to restrict file descriptors to 1 digit.
[...]

Related discussion on the austin-group mailing list:

http://thread.gmane.org/gmane.comp.standards.posix.austin.general/10094

-- 
Stephane



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