From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15639 invoked by alias); 20 Jul 2013 20:50:57 -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: 31546 Received: (qmail 16262 invoked from network); 20 Jul 2013 20:50:51 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 74.125.82.176 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=BdYPeV1xcJsHVLRcSlbaSXO7XT3YwUIpNJqILQc7rSI=; b=HBtKFurGiMLXgOwCLcJSL0Q3HifumTKD3/MaS+BqboJGm+x9QgEmktkQUlkRw3wLMC TtH057k9EO4sy3MroeeGCBE+DuSQCJOI1xu/A0/JLD67xxZIt278f4x3vtAhLKVoOSGC GFT2/SV2x7//rtzaxqt+CxWQNGzmOEoAg6QDSFIcvL7Y49IT0WcZnPcizAzee1W8QFIS CoTptYJvfGUHTkLF9pbimcsf7YrHCBmvxQacrQyzGuPjj6QWCSeB3X62wZ3ylDcnIR1G GbzY3wredz7JJL4FATUbT/pet8PstpGDfOkKo4EdE/ZCUxuSqFNXR593Vr2L4x5B44iL J1mg== X-Received: by 10.194.234.100 with SMTP id ud4mr15320326wjc.44.1374351933590; Sat, 20 Jul 2013 13:25:33 -0700 (PDT) Date: Sat, 20 Jul 2013 21:25:31 +0100 From: Stephane Chazelas To: Peter Stephenson Cc: zsh-workers@zsh.org Subject: Re: bug with eval, proc-subst and pipes Message-ID: <20130720202531.GA10442@chaz.gmail.com> Mail-Followup-To: Peter Stephenson , zsh-workers@zsh.org References: <20130716215540.22d88a27@pws-pc.ntlworld.com> <130717000027.ZM15643@torch.brasslantern.com> <20130717201733.2c0b029b@pws-pc.ntlworld.com> <20130718095741.3f54725f@pwslap01u.europe.root.pri> <20130718102227.527429bd@pwslap01u.europe.root.pri> <20130718123210.054f1ea1@pwslap01u.europe.root.pri> <20130719200159.GA8712@chaz.gmail.com> <20130719205853.GB8712@chaz.gmail.com> <20130720181144.1b5a7fc0@pws-pc.ntlworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130720181144.1b5a7fc0@pws-pc.ntlworld.com> User-Agent: Mutt/1.5.21 (2010-09-15) 2013-07-20 18:11:44 +0100, Peter Stephenson: > On Fri, 19 Jul 2013 21:58:53 +0100 > Stephane Chazelas wrote: > > and fd 13 by closedumps() (the missing link to compinit?). > > That's distinctly suspicious, if 13 was opened for the process > substitution. > > Does the following fix it, or is there yet more? > > If it does we still have an error for older systems, but I suspect > FD_CLOEXEC (and O_CLOEXEC) are widely enough supported that may be more > a theoretical then an actual problem. [...] It's better: $ eval 'ls -l <(echo 1) <(echo 2) <(echo 3) <(echo 4)' | cat ls: cannot access /proc/self/fd/11: No such file or directory lr-x------ 1 chazelas chazelas 64 Jul 20 21:23 /proc/self/fd/10 -> pipe:[1541173] lr-x------ 1 chazelas chazelas 64 Jul 20 21:23 /proc/self/fd/12 -> pipe:[1541175] lr-x------ 1 chazelas chazelas 64 Jul 20 21:23 /proc/self/fd/13 -> pipe:[1541176] Only one now instead of two. -- Stephane