From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26052 invoked from network); 29 Mar 2008 17:50:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) 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.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 29 Mar 2008 17:50:53 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 37712 invoked from network); 29 Mar 2008 17:50:49 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Mar 2008 17:50:49 -0000 Received: (qmail 29543 invoked by alias); 29 Mar 2008 17:50:46 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24779 Received: (qmail 29527 invoked from network); 29 Mar 2008 17:50:45 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 29 Mar 2008 17:50:45 -0000 Received: from vms173001pub.verizon.net (vms173001pub.verizon.net [206.46.173.1]) by bifrost.dotsrc.org (Postfix) with ESMTP id 85CB382CD273 for ; Sat, 29 Mar 2008 18:50:42 +0100 (CET) Received: from torch.brasslantern.com ([71.116.79.77]) by vms173001.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JYI004X76WFAPD0@vms173001.mailsrvcs.net> for zsh-workers@sunsite.dk; Sat, 29 Mar 2008 12:50:40 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id m2THocgO021863 for ; Sat, 29 Mar 2008 10:50:38 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m2THob0c021862 for zsh-workers@sunsite.dk; Sat, 29 Mar 2008 10:50:37 -0700 Date: Sat, 29 Mar 2008 10:50:37 -0700 From: Bart Schaefer Subject: Re: #c flag wrong behaviour In-reply-to: <20080329161300.GA19193@okita> To: zsh-workers Message-id: <080329105037.ZM21861@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20080329161300.GA19193@okita> Comments: In reply to Anthony Charles "#c flag wrong behaviour" (Mar 29, 5:18pm) X-Virus-Scanned: ClamAV 0.91.2/6466/Sat Mar 29 18:23:29 2008 on bifrost X-Virus-Status: Clean On Mar 29, 5:18pm, Anthony Charles wrote: } } Saito% print *.?(#c1,2)sh } test.bash } Saito% print *.?(#c1,)sh } zsh: no matches found: *.?(#c1,)sh } Saito% print *.?(#c1,) } test.bash test.ksh test.zsh } Saito% } } It seems that #c flag is too greedy. Am I wrong? Those results do appear incorrect to me. Unfortunately I can't tell if the problem is in the compilation of the pattern, or the execution. I suspect the compilation because it doesn't parallel ## in the way I'd expect, but I'm not very familiar with that part of the code.