bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] [PATCH] small cleanup of gnulib-tool


From: Paul Eggert
Subject: Re: [bug-gnulib] [PATCH] small cleanup of gnulib-tool
Date: Tue, 14 Dec 2004 09:55:45 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Stepan Kasal <address@hidden> writes:

> -        func_get_automake_snippet "$module" | sed -e 
> "s,lib_SOURCES,${libname}_${libext}_SOURCES,g" -e 
> "s,lib_OBJECTS,${libname}_${libext}_OBJECTS,g"
> +        func_get_automake_snippet "$module" | \
> +             sed -e 
> 's,lib_\(SOURCES\|OBJECTS\|LIBADD\),'"${libname}_${libext}"'_\1,g' 

That doesn't look portable.  POSIX says \| has undefined behavior in a
sed regular expression.

Also, the original doesn't mention LIBADD, but the replacement does.
How come?




reply via email to

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