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

Re: zsh vs. ksh coproc redirection semantics



Bart wrote:
> On May 7,  9:34am, Andrew Main wrote:
> } Subject: Re: zsh vs. ksh coproc redirection semantics
> }
> } I think we should probably just implement the documented ksh behaviour.
> 
> I'd take a poll first (and see if you can get PF to answer).  One aspect
> of the current zsh behavior is that you can leave the same coproc running
> all day and feed different stuff through it from time to time, which IIRC
> was actually discussed in a long-ago introduction-to-zsh document that
> Paul once distributed.

You can do it with the ksh syntax by moving it first with exec ..&p
and then you can use the moved descriptor as many times as you wish.

p>&- can calso be done by 3>&p 3>&-.

Zoli



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