zsh-workers
 help / color / mirror / code / Atom feed
* zpty -r and pipes
@ 2013-05-13 15:27 Stephane Chazelas
  2013-05-13 16:21 ` Peter Stephenson
  2013-05-14  1:25 ` Bart Schaefer
  0 siblings, 2 replies; 3+ messages in thread
From: Stephane Chazelas @ 2013-05-13 15:27 UTC (permalink / raw)
  To: zsh-workers

$ zsh -c 'zmodload zsh/zpty; zpty E echo test; zpty -r E'
test

But if I pipe it to anything:

$ zsh -c 'zmodload zsh/zpty; zpty E echo test; zpty -r E | cat'
$

No output.

Those are fine though:

$ zsh -c 'zmodload zsh/zpty; zpty E echo test; echo $(zpty -r E)'
test
$ zsh -c 'zmodload zsh/zpty; zpty E echo test; {zpty -r E} | cat'
test


Sounds like some bug in fd management.

$ zsh --version
zsh 5.0.2 (x86_64-unknown-linux-gnu)

-- 
Stephane


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-05-14  1:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-13 15:27 zpty -r and pipes Stephane Chazelas
2013-05-13 16:21 ` Peter Stephenson
2013-05-14  1:25 ` Bart Schaefer

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).