From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14269 invoked by alias); 9 Jul 2003 15:50:12 -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 14259 invoked from network); 9 Jul 2003 15:50:11 -0000 Received: from unknown (HELO concert.shout.net) (204.253.184.25) by sources.redhat.com with SMTP; 9 Jul 2003 15:50:11 -0000 Received: from duracef.shout.net (duracef.shout.net [204.253.184.12]) by concert.shout.net (8.12.9/8.12.9) with ESMTP id h69Fo0op014667; Wed, 9 Jul 2003 10:50:00 -0500 Received: from duracef.shout.net (localhost [127.0.0.1]) by duracef.shout.net (8.12.9/8.12.9) with ESMTP id h69Fo0HK024225; Wed, 9 Jul 2003 10:50:00 -0500 Received: (from mec@localhost) by duracef.shout.net (8.12.9/8.12.9/Submit) id h69Fo0QW024224; Wed, 9 Jul 2003 11:50:00 -0400 Date: Wed, 09 Jul 2003 15:50:00 -0000 From: Michael Elizabeth Chastain Message-Id: <200307091550.h69Fo0QW024224@duracef.shout.net> To: dberlin@dberlin.org Subject: Re: [testsuite] gdb.c++/templates.exp Cc: gdb-patches@sources.redhat.com, mludvig@suse.cz X-SW-Source: 2003-07/txt/msg00181.txt.bz2 Hi Daniel, >> \\(unsigned ?(long|)\\); > 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. The ? applies to one atom before it. An atom is just the single character ' ', not the whole string 'unsigned '. So says "Tcl and the Tk Toolkit", section 9.3. It's been that way in Unix regular expressions since the days of 'ed'. What with the fifty different regular expression implementations out there, maybe one of them does behave that way. Not TCL or egrep or perl or vim though. Michael C