From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8484 invoked by alias); 9 Jul 2003 15:38:19 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 8475 invoked from network); 9 Jul 2003 15:38:18 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 9 Jul 2003 15:38:18 -0000 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19aH1H-00059D-00; Wed, 09 Jul 2003 11:38:11 -0400 Date: Wed, 09 Jul 2003 15:38:00 -0000 From: Daniel Jacobowitz To: Daniel Berlin Cc: Michael Elizabeth Chastain , gdb-patches@sources.redhat.com, mludvig@suse.cz Subject: Re: [testsuite] gdb.c++/templates.exp Message-ID: <20030709153811.GA19723@nevyn.them.org> Mail-Followup-To: Daniel Berlin , Michael Elizabeth Chastain , gdb-patches@sources.redhat.com, mludvig@suse.cz References: <200307091505.h69F5WkH023634@duracef.shout.net> <3E88AB72-B220-11D7-BADE-000A95A34564@dberlin.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2003-07/txt/msg00179.txt.bz2 On Wed, Jul 09, 2003 at 11:20:05AM -0400, Daniel Berlin wrote: > > On Wednesday, July 9, 2003, at 11:15 AM, Daniel Berlin wrote: > > > > >On Wednesday, July 9, 2003, at 11:05 AM, Michael Elizabeth Chastain > >wrote: > > > >>Hi Michal, > >> > >>This part is not quite correct: > >> > >> \\(unsigned ?(long|)\\); > >> > >>It would accept 'unsignedlong' which would be wrong. > > > >It shouldn't, unless the regex isn't whitespace sensitive > > Just to be clear, this regex should accept nothing, "long", "unsigned > long", and "unsigned". > This may be *wrong*, but it certainly shouldn't accept "unsignedlong". > The ? should be applying to "unsigned ", not just the whitespace. I have never encountered a regex engine which worked that way. Unless you parenthesize the ? will only apply to the previous character. At least perl, TCL, and egrep are (for once!) consistent here. So is procmail :P -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer