Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2003:
[Freeciv-Dev] Re: (PR#4238) autogen breaks with sed 4.x
Home

[Freeciv-Dev] Re: (PR#4238) autogen breaks with sed 4.x

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients:;
Subject: [Freeciv-Dev] Re: (PR#4238) autogen breaks with sed 4.x
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 14 May 2003 09:04:45 -0700
Reply-to: rt@xxxxxxxxxxxxxx

Raimar Falke wrote:
> On Wed, May 14, 2003 at 06:38:35AM -0700, Jason Short wrote:

>>I believe the difference is that [A-z] is no longer supported as a 
>>regular expression.  I think the attached patch will fix this.
> 
> 
> Josef mentioned this. But IIRC he also said that [a-zA-Z] won't work
> with other versions of sed. Josef?

The line he eventually chose (tested with sed 3.x and 4.x) is:

   sed 's/^[A-Za-z\-\.\ ()]*//;s/\([0-9]*\)[a-z]/\1/;s/ .*$//'

(This is from autogen.sh in GGZ's libggz module.)

jason




[Prev in Thread] Current Thread [Next in Thread]