From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14358 invoked from network); 16 Jun 2008 15:31:55 -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=AWL,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; 16 Jun 2008 15:31:55 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 22464 invoked from network); 16 Jun 2008 15:31:48 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 16 Jun 2008 15:31:48 -0000 Received: (qmail 28263 invoked by alias); 16 Jun 2008 15:31:43 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25164 Received: (qmail 28248 invoked from network); 16 Jun 2008 15:31:43 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 16 Jun 2008 15:31:43 -0000 Received: from vms173001pub.verizon.net (vms173001pub.verizon.net [206.46.173.1]) by bifrost.dotsrc.org (Postfix) with ESMTP id BB5E58028AC3 for ; Mon, 16 Jun 2008 17:31:20 +0200 (CEST) Received: from torch.brasslantern.com ([71.121.0.2]) by vms173001.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0K2K003WCB31FWM5@vms173001.mailsrvcs.net> for zsh-workers@sunsite.dk; Mon, 16 Jun 2008 10:30:38 -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 m5GFUaOF009367 for ; Mon, 16 Jun 2008 08:30:37 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m5GFUZ28009366 for zsh-workers@sunsite.dk; Mon, 16 Jun 2008 08:30:35 -0700 Date: Mon, 16 Jun 2008 08:30:35 -0700 From: Bart Schaefer Subject: Re: PATCH: rewrite of completion matching In-reply-to: <20080616135405.7a2a816e@pws-pc> To: zsh-workers@sunsite.dk (Zsh hackers list) Message-id: <080616083035.ZM9365@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <10676.1212870878@pws-pc> <080616001700.ZM8326@torch.brasslantern.com> <20080616135405.7a2a816e@pws-pc> Comments: In reply to Peter Stephenson "Re: PATCH: rewrite of completion matching" (Jun 16, 1:54pm) X-Virus-Scanned: ClamAV 0.92.1/7489/Mon Jun 16 16:51:24 2008 on bifrost X-Virus-Status: Clean On Jun 16, 1:54pm, Peter Stephenson wrote: } Subject: Re: PATCH: rewrite of completion matching } } On Mon, 16 Jun 2008 00:17:00 -0700 } Bart Schaefer wrote: } > I *think* you mean that m:{[:punct:]}={[:space:]} is "any single } > punctuation character matches any single whitespace character," } > whereas m:{[:lower:]}={[:upper:]} is "each lower case character } > matches the corresponding upper case character." That is, the former } > works like "sed 's/[[:punct:]]/[[:space:]]/g'" but the latter works } > like "tr '[:lower:]' '[:upper:]'". } } Yes. OK, then what do each of the following mean, and how could I figure it out from the documentation? m:{[:lower:][:digit:]}={[:upper:][:digit:]} m:{[:digit:][:lower:]}={[:upper:][:digit:]} m:{[:lower:]0-9}={[:upper:][:digit:]} m:{[:lower:][:digit:]}={[:alnum:]} m:{[:lower:]}={[:alpha:]} } I missed a special case, in fact: if the classes are the same, } then the character is forced to be the same as well. So m:{[:alnum:]}={[:alnum:]} is effectively an expensive no-op? Found another doc typo, by the way: Index: Doc/Zsh/expn.yo 1426c1426 < item(tt([:lower:]))(l --- > item(tt([:lower:]))(