Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zpty -r and pipes
- X-seq: zsh-workers 31397
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: zpty -r and pipes
- Date: Mon, 13 May 2013 16:27:20 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:subject:message-id:mail-followup-to :mime-version:content-type:content-disposition:user-agent; bh=QUvXGquQRo+AQ7vkhBPYzQybKL6RgpxB+crul9ovZJU=; b=bEnJa45/VoUY1BYIDofdhRcvrcPdMzpHrkaMbEx8lX6dzSUdh0888fcxZWDW//r7re VrKLqxjlu+dy+ElENm1UhqQ9yOOogCmnBJCvv7rGBuat2jjoxL3mR7BrlpJNXSevdjfc CRWOWxjNC/TywBGbcfdvbXh6OhZY4+yITTXFJ7zRZBhJrAIxWBnu7BIjptcmM+/BFrhh +/gxLbPyHhb9dLpPt5WVQEYN52Bnl0Ym2DpY/N3gM/0IUpEivGQ6cLlTN6NSdXbDHOWO ccKl6U/VDm/EeQ4Oi8IUqNsGoKP7i0GUygNgmU+hDjVC7bRLlTPso/kw6pBCLPBG/Ywt mYDg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
$ 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author