From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28501 invoked by alias); 15 Jul 2013 17:06:39 -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: 31518 Received: (qmail 900 invoked from network); 15 Jul 2013 17:06:33 -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 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <130715100624.ZM14123@torch.brasslantern.com> Date: Mon, 15 Jul 2013 10:06:24 -0700 In-reply-to: <20130715133525.GA7694@chaz.gmail.com> Comments: In reply to Stephane Chazelas "bug with eval, proc-subst and pipes" (Jul 15, 2:35pm) References: <20130715133525.GA7694@chaz.gmail.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Stephane Chazelas , zsh-workers@zsh.org Subject: Re: bug with eval, proc-subst and pipes MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Jul 15, 2:35pm, Stephane Chazelas wrote: } Subject: bug with eval, proc-subst and pipes } } NOK$ eval 'paste <(echo 1) <(echo 2) <(echo 3) <(echo 4)' | cat } paste: /proc/self/fd/13: No such file or directory It's a race condition of some kind. I can reproduce reliably with % (){ sleep 5; paste "$@" } <(echo 1) even without an "eval". I believe this is happening because zsh asynchronously gets the child exited signal for (echo 1) and immediately reaps it and therefore closes its descriptors, but I don't have direct evidence.