[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]
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
|
|