From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27997 invoked from network); 28 Jun 2006 07:05:02 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 28 Jun 2006 07:05:02 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 29737 invoked from network); 28 Jun 2006 07:04:55 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Jun 2006 07:04:55 -0000 Received: (qmail 23628 invoked by alias); 28 Jun 2006 07:04:48 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10452 Received: (qmail 23616 invoked from network); 28 Jun 2006 07:04:48 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 28 Jun 2006 07:04:48 -0000 Received: (qmail 28628 invoked from network); 28 Jun 2006 07:04:48 -0000 Received: from ms-1.rz.rwth-aachen.de (HELO ms-dienst.rz.rwth-aachen.de) (134.130.3.130) by a.mx.sunsite.dk with SMTP; 28 Jun 2006 07:04:46 -0000 Received: from r220-1 (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0J1K003P16BV1H@ms-dienst.rz.rwth-aachen.de> for zsh-users@sunsite.dk; Wed, 28 Jun 2006 09:04:44 +0200 (MEST) Received: from relay.rwth-aachen.de ([134.130.3.1]) by r220-1 (MailMonitor for SMTP v1.2.2 ) ; Wed, 28 Jun 2006 09:04:43 +0200 (MEST) Received: from fsst.voodoo.lan (u-7-027.vpn.RWTH-Aachen.DE [137.226.103.27]) by relay.rwth-aachen.de (8.13.7/8.13.3/1) with ESMTP id k5S74huJ023760 for ; Wed, 28 Jun 2006 09:04:43 +0200 (MEST) Received: from hawk by fsst.voodoo.lan with local (Exim 4.62) (envelope-from ) id 1FvU5w-00051h-8Q for zsh-users@sunsite.dk; Wed, 28 Jun 2006 09:04:16 +0200 Date: Wed, 28 Jun 2006 09:04:16 +0200 From: Frank Terbeck Subject: Re: The (X) flag. In-reply-to: <060627235116.ZM19160@torch.brasslantern.com> To: zsh users Mail-followup-to: zsh users Message-id: <20060628070416.GO6528@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.16.16 i686 User-Agent: Mutt/1.5.11+cvs20060403 References: <20060628045752.GN6528@fsst.voodoo.lan> <060627235116.ZM19160@torch.brasslantern.com> Bart Schaefer : > On Jun 28, 6:57am, Frank Terbeck wrote: > } > } Now I thought it might throw an error when a given pattern doesn't > } match: > > No. Failing to match the pattern is not an error, it's one of the > expected possible outcomes. > > } However, I guess, I'm misunderstanding the manual. So, could someone > } please give an example of what this flag does? > > The errors involved are lexical errors, that is, failures in tokenizing > the string. I can't immediately think of one that affects ${var#pat}, > but here's an obvious one with the (Q) flag: [...] Okay, that makes it a lot clearer for me. Thank you. Regards, Frank