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

Re: coprocesses



Sven Wischnowsky wrote:
> Peter Stephenson wrote:
> > coproc cat
> > print foo >&p
> > read line <&p
> > 
> > simply hung
> 
> 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

It works in Zeuthen, too, so maybe it's just the climate, or unexpected
buffering.  Using print -p/read -p in ksh seems to hang it, too.  I'm going
to have to stop using computers, it's too confusing.

> (without the cat
> terminating after the first `print' which, as I think, is correct).

It depends how you think of it.  ksh doesn't with print -p.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



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