From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3270 invoked from network); 25 Nov 2008 09:57:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Nov 2008 09:57:10 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 73295 invoked from network); 25 Nov 2008 09:57:02 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Nov 2008 09:57:02 -0000 Received: (qmail 23637 invoked by alias); 25 Nov 2008 09:56:53 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26090 Received: (qmail 23620 invoked from network); 25 Nov 2008 09:56:52 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 25 Nov 2008 09:56:52 -0000 Received: from cluster-d.mailcontrol.com (cluster-d.mailcontrol.com [217.69.20.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id DDAD780525B4 for ; Tue, 25 Nov 2008 10:56:49 +0100 (CET) Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by rly39d.srv.mailcontrol.com (MailControl) with ESMTP id mAP9um7N020858 for ; Tue, 25 Nov 2008 09:56:48 GMT Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Tue, 25 Nov 2008 09:56:47 +0000 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.14.2/8.13.4) with ESMTP id mAP9ultn026005 for ; Tue, 25 Nov 2008 09:56:47 GMT Received: from csr.com (pws@localhost) by news01.csr.com (8.14.2/8.14.2/Submit) with ESMTP id mAP9ukDw026001 for ; Tue, 25 Nov 2008 09:56:47 GMT Message-Id: <200811250956.mAP9ukDw026001@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk Subject: Re: D03 test hang on cygwin with latest sources In-reply-to: <20081124223104.GA37873@redoubt.spodhuis.org> References: <20a807210811202008o34865319qe1840896992ac48d@mail.gmail.com> <081120211244.ZM30106@torch.brasslantern.com> <20081124173230.31422068@news01> <20081124223104.GA37873@redoubt.spodhuis.org> Comments: In-reply-to Phil Pennock message dated "Mon, 24 Nov 2008 14:31:04 -0800." Date: Tue, 25 Nov 2008 09:56:46 +0000 From: Peter Stephenson X-OriginalArrivalTime: 25 Nov 2008 09:56:47.0651 (UTC) FILETIME=[21646F30:01C94EE4] X-Scanned-By: MailControl A_08_51_00 (www.mailcontrol.com) on 10.68.0.149 X-Virus-Scanned: ClamAV 0.92.1/8677/Tue Nov 25 04:52:25 2008 on bifrost X-Virus-Status: Clean Phil Pennock wrote: > On 2008-11-24 at 17:32 +0000, Peter Stephenson wrote: > > Right, the behaviour isn't new. It seems as if the subprocess is > > reading EOF from the input. > > > > % foo() { print $1; print hello >$1; [[ -e $1 ]] || print Ouch! } > > % foo >(sleep 1; read foo || print Failed) > > /proc/self/fd/12 > > Failed > > ...% zsh -f > redoubt% echo $ZSH_VERSION > 4.3.6 > redoubt% foo() { print $1; print hello >$1; [[ -e $1 ]] || print Ouch! } > redoubt% foo >(sleep 1; read foo || print Failed) > /tmp/zshQCDdM0 > redoubt% > > Looks like a regression after all. Did you try it in 4.3.9? I tried it on three different versions, before and after 4.3.6, and got the same result. If your system is doing something different I'd like to find out what. I *can* get the test to pass if I undefine PATH_DEV_FD and define HAVE_FIFOS, so it looks like this is the way forward. Some investigation of why HAVE_FIFOS doesn't get define automatically would be useful. (I tried adding a "sync" pipe to getpipe() in the same way as in the other pipe code, but it didn't seem to help.) I'm also finding that I can read files with mode 000, so the [[ -r ... ]] test fails (but it's clearly doing the right thing, since "cat" on the file works, too). This may be because I have administrator rights. Unless some Cygwin expert can do this better, I'll apply the following. This is with Cygwin updated from the stable versions yesterday. Index: Test/C02cond.ztst =================================================================== RCS file: /cvsroot/zsh/zsh/Test/C02cond.ztst,v retrieving revision 1.22 diff -u -r1.22 C02cond.ztst --- Test/C02cond.ztst 26 Feb 2008 20:50:13 -0000 1.22 +++ Test/C02cond.ztst 25 Nov 2008 09:54:00 -0000 @@ -94,6 +94,10 @@ if (( EUID == 0 )); then print -u$ZTST_fd 'Warning: Not testing [[ ! -r file ]] (root reads anything)' [[ -r zerolength && -r unmodish ]] + elif [[ $OSTYPE = cygwin ]]; then + print -u$ZTST_fd 'Warning: Not testing [[ ! -r file ]] + (all files created by user may be readable)' + [[ -r zerolength ]] else [[ -r zerolength && ! -r unmodish ]] fi -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070