From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12820 invoked from network); 9 Oct 2007 13:02:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 9 Oct 2007 13:02:39 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 45310 invoked from network); 9 Oct 2007 13:02:33 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 Oct 2007 13:02:33 -0000 Received: (qmail 9355 invoked by alias); 9 Oct 2007 13:02:31 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23926 Received: (qmail 9341 invoked from network); 9 Oct 2007 13:02:30 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 9 Oct 2007 13:02:30 -0000 Received: (qmail 45055 invoked from network); 9 Oct 2007 13:02:30 -0000 Received: from cluster-g.mailcontrol.com (85.115.41.190) by a.mx.sunsite.dk with SMTP; 9 Oct 2007 13:02:23 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly10g.srv.mailcontrol.com (MailControl) with ESMTP id l99D1gbp031745 for ; Tue, 9 Oct 2007 14:02:18 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Tue, 9 Oct 2007 13:59:44 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.14.1/8.13.4) with ESMTP id l99Cxiuk025640 for ; Tue, 9 Oct 2007 13:59:44 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.14.1/8.14.1/Submit) with ESMTP id l99Cxifg025637 for ; Tue, 9 Oct 2007 13:59:44 +0100 Message-Id: <200710091259.l99Cxifg025637@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk Subject: Re: bug in patterns used for filename expansion (e.g. a[b/c]d) In-reply-to: <20071009124055.GH22340@prunille.vinc17.org> References: <20071009124055.GH22340@prunille.vinc17.org> Comments: In-reply-to Vincent Lefevre message dated "Tue, 09 Oct 2007 14:40:55 +0200." Date: Tue, 09 Oct 2007 13:59:44 +0100 From: Peter Stephenson X-OriginalArrivalTime: 09 Oct 2007 12:59:44.0315 (UTC) FILETIME=[4363B0B0:01C80A74] X-Scanned-By: MailControl A-07-08-10 (www.mailcontrol.com) on 10.71.0.120 Vincent Lefevre wrote: > zsh 4.3.4 isn't POSIX-compliant concerning filename expansion and > unmatched [. POSIX[*] says: > > For example, the pattern "a[b/c]d" does not match such pathnames as > abd or a/d. It only matches a pathname of literally a[b/c]d. > > [*] http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#t > ag_02_13_03 > > But with zsh 4.3.4: > > prunille% ls a[b/c]d > zsh: no matches found: a[b/c]d As I said on the Austin group list, this isn't a bug. It's controlled by the option NOMATCH; you'll find that if zsh is in compatibility mode that option is unset. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070