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

Re: zsh vs. ksh coproc redirection semantics



Zoltan Hidvegi wrote:
>       <&digit-      The file descriptor given by digit is  moved
>                     to  standard input.  Similarly for the stan-
>                     dard output using >&digit-.
>
>       <&p           The  input  from  the co-process is moved to
>                     standard input.

Ah, now it makes sense.

>Probably is.  The other solution would be to inplement the >&digit-
>syntax and have >&p duplicate, >&p- move the coprocess descriptor.  This
>is consistent, but incompatible with ksh.  Since zsh is already not
>compatible with ksh when creating coprocesses, this might be acceptable,
>but this can greatly confuse people coming from ksh.

I think we should probably just implement the documented ksh behaviour.
It we makes fds above 9 visible, then the usual numerical syntax can be
used to copy, rather than move, the coprocess fds.

-zefram



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