* Re: coprocesses
@ 1999-07-21 10:28 Sven Wischnowsky
1999-07-21 11:34 ` coprocesses Peter Stephenson
0 siblings, 1 reply; 3+ messages in thread
From: Sven Wischnowsky @ 1999-07-21 10:28 UTC (permalink / raw)
To: zsh-workers
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@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: coprocesses
1999-07-21 10:28 coprocesses Sven Wischnowsky
@ 1999-07-21 11:34 ` Peter Stephenson
0 siblings, 0 replies; 3+ messages in thread
From: Peter Stephenson @ 1999-07-21 11:34 UTC (permalink / raw)
To: zsh-workers
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@ibmth.df.unipi.it> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
^ permalink raw reply [flat|nested] 3+ messages in thread
* coprocesses
@ 1999-07-21 9:34 Peter Stephenson
0 siblings, 0 replies; 3+ messages in thread
From: Peter Stephenson @ 1999-07-21 9:34 UTC (permalink / raw)
To: Zsh hackers list
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.
--
Peter Stephenson <pws@ibmth.df.unipi.it> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-07-21 12:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-21 10:28 coprocesses Sven Wischnowsky
1999-07-21 11:34 ` coprocesses Peter Stephenson
-- strict thread matches above, loose matches on Subject: below --
1999-07-21 9:34 coprocesses Peter Stephenson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).