From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18850 invoked from network); 8 Jul 1998 19:52:40 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 8 Jul 1998 19:52:40 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id PAA07017; Wed, 8 Jul 1998 15:33:55 -0400 (EDT) Resent-Date: Wed, 8 Jul 1998 15:33:55 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199807081935.OAA79318@frontiernet.net> Subject: Re: 'LC_COLLATE=de ls [A-Z]*' expands to 'every file' including lowercase In-Reply-To: <980708102437.ZM9344@candle.brasslantern.com> from Bart Schaefer at "Jul 8, 98 10:24:37 am" To: schaefer@brasslantern.com (Bart Schaefer) Date: Wed, 8 Jul 1998 14:35:04 -0500 (CDT) Cc: zsh-workers@math.gatech.edu X-Mailer: ELM [version 2.4ME+ PL35 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"MD1AH1.0.aj1.Ycyer"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4216 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > On Jul 8, 10:36am, Zoltan Hidvegi wrote: > } Subject: Re: 'LC_COLLATE=de ls [A-Z]*' expands to 'every file' including l > } > } > Which standard, specifically? > } > } POSIX 1003.2 and X Open Single Unix Spcification Version 2. > > Well, yes, but I meant which volume. Commands and Utilities? Base Definitions -> Regular Expressions. Commands and Utilities -> Shell Command Language refers to regular expressions describing range patterns. Which means that you should not be surprised when sed and grep start matching lower case letters with [A-Z]. And if you ever port zsh to some EBCDIC machine, you'd probably want to use the collate order. But it looks like the GNU regexp library does not use the collate order for ranges, neither does bash, actually, I haven't found anything which uses the collate order for ranges, so it is probably OK to make zsh non-conforming here. Zoli