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

Re: coprocesses



Peter Stephenson wrote:

> Are coprocesses still working?  I got some strange results after trying
> them in order to make the manual a bit clearer, but I don't use them often
> enough to be sure.
> 
> coproc cat
> print foo >&p
> read line <&p
> 
> simply hung --- it did that without job control, too.  In ksh it read the
> expected line and the coprocess terminated.  Trying to close the coprocess
> input seemed to provoke some even stranger things.

If that's on your AIX box, this would probably show that it really has
some problems with IO, because it works fine for me (without the cat
terminating after the first `print' which, as I think, is correct).

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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