From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2682 invoked by alias); 19 Jul 2013 22:56:36 -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: 31544 Received: (qmail 4372 invoked from network); 19 Jul 2013 22:56:31 -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.169 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=pm4v5FD2iNSNn4t2ZlpDUSnQABfwLSLnfpcIFVCLpsA=; b=iYU9HiHm5ElKkxeRjyDiFbB+BNTgcPWWNqd2n+yMBMwwFSOhwtvEE2tfeFose1CWx6 MQ8PnMZNimzRVqoJT3T5ckkbSDr16FwzpX3Wu4iGzo9RqtRjqMxfsc/X2j3CJLEgARRR AZe6B9AQi3BzNRUO/0EuW0tk30YVfs1luNNABIknigAunIXEtUasn3ttJrR1auplu7XE 0+EUQOPlfdFuufZpiPcZBSo7qDfZ2W8YA61C2cUs1q6e+moymBc4gGQW9PUSceZ4SPX7 V3CVB5l3g0Kc+3kRT8z19R/qS9MtK6hxgMH9H5ymgtfdkWvTC8xFuimtCZB3AAEym1E8 MGig== X-Received: by 10.180.11.146 with SMTP id q18mr12831563wib.50.1374274584208; Fri, 19 Jul 2013 15:56:24 -0700 (PDT) Date: Fri, 19 Jul 2013 23:56:22 +0100 From: Stephane Chazelas To: Bart Schaefer Cc: Peter Stephenson , "zsh-workers@zsh.org" Subject: Re: bug with eval, proc-subst and pipes Message-ID: <20130719225622.GC8712@chaz.gmail.com> Mail-Followup-To: Bart Schaefer , Peter Stephenson , "zsh-workers@zsh.org" References: <130715100624.ZM14123@torch.brasslantern.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 2013-07-19 14:36:07 -0700, Bart Schaefer: > On Friday, July 19, 2013, Stephane Chazelas wrote: > > > 2013-07-18 12:32:10 +0100, Peter Stephenson: > > [...] > > > Apparently working (except for the fact it doesn't fix Stephane's > > > original problem, don't know if we're any further forward with that). > > > However, I'll wait in case Bart can see something I missed. > > > For some reason I never received that message from Peter. Did it perhaps > go privately to Stephen? http://thread.gmane.org/gmane.comp.shells.zsh.devel/26797/focus=26823 > ~$ eval 'ls -l <(echo 1) <(echo 2) <(echo 3) <(echo 4)' | cat > > ls: cannot access /proc/self/fd/11: No such file or directory > > ls: cannot access /proc/self/fd/13: No such file or directory > > lr-x------ 1 chazelas chazelas 64 Jul 19 20:52 /proc/self/fd/10 -> > > pipe:[509333] > > lr-x------ 1 chazelas chazelas 64 Jul 19 20:52 /proc/self/fd/12 -> > > pipe:[509335] > > > Ok, this is kinda strange, because on my Ubuntu system there is no > /proc/self/fd ... The "ls" shows /dev/fd files. Why would that be > different? >>From config.log: configure:10381: checking for /dev/fd filesystem configure:10394: result: /proc/self/fd > > And it's further odd that some of the descriptors are closed but not all of > them. > > > > [In strace] > > > > See how fd 13 is closed in the process that execs ls and fd 11 > > in its parent shortly before the fork. > > > That's also odd. It would almost seem to imply that those descriptors got > the close-on-exec flag set somehow. If you look at my other email (http://thread.gmane.org/gmane.comp.shells.zsh.devel/26797/focus=26823). Those fds are closed because they are taken for something else (I suppose because they had been closed before already and reassigned). -- Stephane