From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29758 invoked from network); 30 Oct 2005 17:40:05 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 30 Oct 2005 17:40:05 -0000 Received: (qmail 36101 invoked from network); 30 Oct 2005 17:39:59 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 30 Oct 2005 17:39:59 -0000 Received: (qmail 28286 invoked by alias); 30 Oct 2005 17:39:57 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21956 Received: (qmail 28276 invoked from network); 30 Oct 2005 17:39:56 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 30 Oct 2005 17:39:56 -0000 Received: (qmail 35769 invoked from network); 30 Oct 2005 17:39:56 -0000 Received: from mta08-winn.ispmail.ntl.com (81.103.221.48) by a.mx.sunsite.dk with SMTP; 30 Oct 2005 17:39:53 -0000 Received: from aamta09-winn.ispmail.ntl.com ([81.103.221.35]) by mta08-winn.ispmail.ntl.com with ESMTP id <20051030173953.EJD17804.mta08-winn.ispmail.ntl.com@aamta09-winn.ispmail.ntl.com> for ; Sun, 30 Oct 2005 17:39:53 +0000 Received: from pwslaptop.csr.com ([81.105.238.64]) by aamta09-winn.ispmail.ntl.com with ESMTP id <20051030173953.ZWPI6564.aamta09-winn.ispmail.ntl.com@pwslaptop.csr.com> for ; Sun, 30 Oct 2005 17:39:53 +0000 Received: from pwslaptop.csr.com (pwslaptop.csr.com [127.0.0.1]) by pwslaptop.csr.com (8.13.4/8.13.4) with ESMTP id j9UHdTvx018759 for ; Sun, 30 Oct 2005 17:39:29 GMT Received: from pwslaptop.csr.com (pws@localhost) by pwslaptop.csr.com (8.13.4/8.13.4/Submit) with ESMTP id j9UHdSHd018756 for ; Sun, 30 Oct 2005 17:39:29 GMT Message-Id: <200510301739.j9UHdSHd018756@pwslaptop.csr.com> X-Authentication-Warning: pwslaptop.csr.com: pws owned process doing -bs From: Peter Stephenson To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: FreeBSD process substitution bug In-Reply-To: Your message of "Sun, 30 Oct 2005 17:31:25 GMT." <1051030173125.ZM8254@candle.brasslantern.com> Date: Sun, 30 Oct 2005 17:39:28 +0000 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.4 Bart Schaefer wrote: > On Oct 30, 4:33pm, Peter Stephenson wrote: > } Subject: Re: FreeBSD process substitution bug > } > } + test x`echo ok|(exec 3<&0; cat $zsh_cv_sys_path_dev_fd/3 2>/dev/null;)` > = xok && break > > I was going to suggest something like that, but I wonder if we should > deliberately choose a higher-numbered descriptor than 3. I thought about that. We can't use 10 or higher as we'd like (that's where the shell will put the fd's it uses) since the shell syntax doesn't support it. I couldn't think of any really good reason to pick 9 rather than 3, but it's an easy change that's at worst harmless if you want to change it. I've now committed the patch with an extra comment. -- Peter Stephenson Web page still at http://www.pwstephenson.fsnet.co.uk/