From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3037 invoked from network); 2 Jul 2001 13:31:41 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 2 Jul 2001 13:31:41 -0000 Received: (qmail 12756 invoked by alias); 2 Jul 2001 13:30:43 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15207 Received: (qmail 12739 invoked from network); 2 Jul 2001 13:30:41 -0000 Date: Mon, 2 Jul 2001 09:31:22 -0400 From: Clint Adams To: Andrej Borsenkow Cc: Peter Stephenson , Zsh hackers list Subject: Re: bracket expressions and POSIX Message-ID: <20010702093122.A17004@dman.com> References: <20010630190039.59EB714286@pwstephenson.fsnet.co.uk> <000301c102be$19047990$21c9ca95@mow.siemens.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <000301c102be$19047990$21c9ca95@mow.siemens.ru>; from Andrej.Borsenkow@mow.siemens.ru on Mon, Jul 02, 2001 at 10:13:22AM +0400 > Actually, SUS explicitly speaks about both quoting (when parsed by shell) > and escaping (when pattern is interpreted). > > This is similar to POSIX, as is the reference on Bracket Expressions. http://www.opengroup.org/onlinepubs/007908799/xbd/re.html#tag_007_003_005 > Note, that patterns in shell are *based* on regular expressions but not > identical (that probably has confused you). What confuses me is where it says that the backslash loses its special meaning within a bracket expression. I see that backslash-escapes take precedence over bracket expressions in BRE's, but, as you noted, pattern matching is not BRE's.