From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19325 invoked from network); 28 Jun 2006 04:58:36 -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 04:58:36 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 34028 invoked from network); 28 Jun 2006 04:58:29 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Jun 2006 04:58:28 -0000 Received: (qmail 6780 invoked by alias); 28 Jun 2006 04:58:21 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10450 Received: (qmail 6770 invoked from network); 28 Jun 2006 04:58:21 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 28 Jun 2006 04:58:21 -0000 Received: (qmail 32896 invoked from network); 28 Jun 2006 04:58:21 -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 04:58:20 -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 <0J1K003RI0H77L@ms-dienst.rz.rwth-aachen.de> for zsh-users@sunsite.dk; Wed, 28 Jun 2006 06:58:19 +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 06:58:19 +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 k5S4wIPf009987 for ; Wed, 28 Jun 2006 06:58:18 +0200 (MEST) Received: from hawk by fsst.voodoo.lan with local (Exim 4.62) (envelope-from ) id 1FvS7c-00008I-Fl for zsh-users@sunsite.dk; Wed, 28 Jun 2006 06:57:52 +0200 Date: Wed, 28 Jun 2006 06:57:52 +0200 From: Frank Terbeck Subject: The (X) flag. To: zsh users Mail-followup-to: zsh users Message-id: <20060628045752.GN6528@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 Hi List. Quoting the manual: [snip] X With this flag parsing errors occurring with the Q and e flags or the pattern matching forms such as `${name#pattern}' are reported. Without the flag they are silently ignored. [snap] Now I thought it might throw an error when a given pattern doesn't match: [snip] zsh% foo='Hello World, mere mortal!' zsh% print ${foo#*, } mere mortal! zsh% print ${foo#*. } Hello World, mere mortal! zsh% print ${(X)foo#*. } Hello World, mere mortal! [snap] I would have expected an error for the last command. However, I guess, I'm misunderstanding the manual. So, could someone please give an example of what this flag does? Regards, Frank