From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4383 invoked by alias); 27 Oct 2013 18:27:29 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31913 Received: (qmail 22380 invoked from network); 27 Oct 2013 18:27:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <131027112724.ZM16426@torch.brasslantern.com> Date: Sun, 27 Oct 2013 11:27:24 -0700 In-reply-to: <20131027174645.6934d78d@pws-pc.ntlworld.com> Comments: In reply to Peter Stephenson "Re: multios doesn't work with 2>&1" (Oct 27, 5:46pm) References: <20131027145917.GA5509@localhost.localdomain> <131027100137.ZM4100@torch.brasslantern.com> <20131027174645.6934d78d@pws-pc.ntlworld.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "Zsh Hackers' List" Subject: Re: multios doesn't work with 2>&1 MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Oct 27, 5:46pm, Peter Stephenson wrote: } Subject: Re: multios doesn't work with 2>&1 } } Bart Schaefer wrote: } > If I back out workers/20666 (Jan 2005), then this example works again. } } (This is really a zsh-workers thing, too, so I've moved it.) } } Crikey, I'd worked out it was already broken in 2007 and I thought I was } doing well... I went through "git whatchanged Src/exec.c" searching for the string "multio" and then cross-referenced with Etc/ChangeLog-4.3. } echo foo >/dev/null 2>&1 | sed 's/foo/bar/' } } gives a different bad effect, namely you get the output you want but the } shell hangs This problem is still there after 31912. The parent shell is in zwaitjob(), as is the shell that spawned sed. The multio copy-input-to-output job is blocked on read of the pipe, which is never going to close because the other two jobs are waiting.