From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25108 invoked from network); 12 Dec 2006 04:01:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 Dec 2006 04:01:48 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 92493 invoked from network); 12 Dec 2006 04:01:41 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Dec 2006 04:01:41 -0000 Received: (qmail 12918 invoked by alias); 12 Dec 2006 04:01:32 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11078 Received: (qmail 12909 invoked from network); 12 Dec 2006 04:01:31 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 12 Dec 2006 04:01:31 -0000 Received: (qmail 91290 invoked from network); 12 Dec 2006 04:01:31 -0000 Received: from vms042pub.verizon.net (206.46.252.42) by a.mx.sunsite.dk with SMTP; 12 Dec 2006 04:01:28 -0000 Received: from torch.brasslantern.com ([71.116.86.88]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JA500G7275R2I12@vms042.mailsrvcs.net> for zsh-users@sunsite.dk; Mon, 11 Dec 2006 22:01:04 -0600 (CST) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id kBC412o1018198 for ; Mon, 11 Dec 2006 20:01:02 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id kBC411EB018195 for zsh-users@sunsite.dk; Mon, 11 Dec 2006 20:01:01 -0800 Date: Mon, 11 Dec 2006 20:01:01 -0800 From: Bart Schaefer Subject: Re: confusing passage in zshexpn(1) In-reply-to: <20061212002156.GC2399@fsst.voodoo.lan> To: zsh users Message-id: <061211200101.ZM18194@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20061212002156.GC2399@fsst.voodoo.lan> Comments: In reply to Frank Terbeck "confusing passage in zshexpn(1)" (Dec 12, 1:21am) On Dec 12, 1:21am, Frank Terbeck wrote: } } Because of this part of the manual he tried this: } % setopt EXTENDED_GLOB; touch 12222; echo 1(2##) } zsh: unknown file attribute } } That's because of the trailing parentheses in the globbing pattern. } But the manual suggests that this should work. People are WAY too "suggestible." Not every fragment that appears as part of a sentence is desgined to be usable as a literal stand-alone example! If it were, it would be on a line by itself, indented, and probaly set off with blank lines before and after as well, not stuck into a sentence with quote marks around it. } How could this be included in the manual? As it happens, this fragment DOES work if you setopt NO_BARE_GLOB_QUAL. That you need to use NO_BARE_GLOB_QUAL to avoid having trailing parens interpreted as glob qualifiers is documented in several other places. It's wildly impractical to document every possible interaction of the dozens of tangentially related options at every example. } How could the fact be included, that this pattern is okay to use in } the following position? That's included too, in the sense that glob qualifiers never apply when you aren't doing file name matching.