From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14934 invoked from network); 12 Dec 2006 00:23:01 -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 00:23:01 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 53452 invoked from network); 12 Dec 2006 00:22:55 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Dec 2006 00:22:55 -0000 Received: (qmail 20370 invoked by alias); 12 Dec 2006 00:22:33 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11077 Received: (qmail 20278 invoked from network); 12 Dec 2006 00:22:26 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 12 Dec 2006 00:22:26 -0000 Received: (qmail 50469 invoked from network); 12 Dec 2006 00:22:26 -0000 Received: from mta-1.ms.rz.rwth-aachen.de (134.130.7.72) by a.mx.sunsite.dk with SMTP; 12 Dec 2006 00:22:22 -0000 Received: from r220-1 ([134.130.3.31]) by mta-1.ms.rz.RWTH-Aachen.de (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JA400A1LX178LC0@mta-1.ms.rz.RWTH-Aachen.de> for zsh-users@sunsite.dk; Tue, 12 Dec 2006 01:22:19 +0100 (CET) Received: from relay.rwth-aachen.de ([134.130.3.1]) by r220-1 (MailMonitor for SMTP v1.2.2 ) ; Tue, 12 Dec 2006 01:22:19 +0100 (MET) Received: from fsst.voodoo.lan ([212.117.84.202]) by relay.rwth-aachen.de (8.13.7/8.13.3/1) with ESMTP id kBC0MI40011600 for ; Tue, 12 Dec 2006 01:22:18 +0100 (MET) Received: from hawk by fsst.voodoo.lan with local (Exim 4.63) (envelope-from ) id 1GtvPA-0001e3-Sj for zsh-users@sunsite.dk; Tue, 12 Dec 2006 01:21:56 +0100 Date: Tue, 12 Dec 2006 01:21:56 +0100 From: Frank Terbeck Subject: confusing passage in zshexpn(1) To: zsh users Mail-followup-to: zsh users Message-id: <20061212002156.GC2399@fsst.voodoo.lan> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Content-disposition: inline Operating-System: Linux 2.6.18.5suspend2+ipw2200 i686 User-Agent: Mutt/1.5.13 (2006-08-11) Hi list, Someone on IRC wondered about a problem with the following passage in zshexpn(1): [snip] x## (Requires EXTENDED_GLOB to be set.) Matches one or more occur- rences of the pattern x. This operator has high precedence; '12##' is equivalent to '1(2##)', rather than '(12)##'. No more than two active '#' characters may appear together. [snap] 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. How could this be included in the manual? How could the fact be included, that this pattern is okay to use in the following position? [snip] % file=12222 % [[ ${file} == 1(2##) ]] && print match. match. [snap] Regards, Frank -- In protocol design, perfection has been reached not when there is nothing left to add, but when there is nothing left to take away. -- RFC 1925