From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1882 invoked from network); 28 Apr 2005 14:55:08 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 28 Apr 2005 14:55:08 -0000 Received: (qmail 3238 invoked from network); 28 Apr 2005 14:55:01 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Apr 2005 14:55:01 -0000 Received: (qmail 14704 invoked by alias); 28 Apr 2005 14:54:58 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21206 Received: (qmail 14689 invoked from network); 28 Apr 2005 14:54:57 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 28 Apr 2005 14:54:57 -0000 Received: (qmail 2899 invoked from network); 28 Apr 2005 14:54:57 -0000 Received: from vms048pub.verizon.net (206.46.252.48) by a.mx.sunsite.dk with SMTP; 28 Apr 2005 14:54:46 -0000 Received: from candle.brasslantern.com ([4.11.1.68]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IFN00L8GW39F88B@vms048.mailsrvcs.net> for zsh-workers@sunsite.dk; Thu, 28 Apr 2005 09:54:46 -0500 (CDT) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j3SEsiEP031611 for ; Thu, 28 Apr 2005 07:54:44 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j3SEsi9Y031610 for zsh-workers@sunsite.dk; Thu, 28 Apr 2005 07:54:44 -0700 Date: Thu, 28 Apr 2005 14:54:43 +0000 From: Bart Schaefer Subject: Re: PATCH: character sets for internal zsh tests In-reply-to: <200504281141.j3SBfI4g019987@news01.csr.com> To: zsh-workers@sunsite.dk (Zsh hackers list) Message-id: <1050428145443.ZM31609@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <200504281141.j3SBfI4g019987@news01.csr.com> Comments: In reply to Peter Stephenson "PATCH: character sets for internal zsh tests" (Apr 28, 12:41pm) X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Apr 28, 12:41pm, Peter Stephenson wrote: } Subject: PATCH: character sets for internal zsh tests You mean character classes, right? } This patch adds [[:sep:]], [[:wsep:]], [[:ident:]], [[:word:]]. I like the idea, but I wonder if we're in danger of running into conflict with future POSIX extensions, particularly with [:word:]. It might be better to use [:_word:] or something. However, I don't feel strongly about this. Ooh, another idea: make them all-caps, e.g. [:WORD:]. } I think the last two are OK but maybe [[:ifs:]] and [[:ifsw:]] } or [[:ifsspace:]] would be better for the first two. Given the recent austin-group discussion about how "separators" is misused in "IFS" (they're really "internal field terminators") it may in fact be better to avoid "sep". However, unless you go with all- caps [:IFS:] I think you should pick something that looks like a word (in the English dictionary sense) or an abbreviation, rather than an acronym. Unfortunately I don't have any good suggestions just now.