[Top][All Lists]

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

Re: replacement of variable placeholders in files

From: Benoit SIGOURE
Subject: Re: replacement of variable placeholders in files
Date: Wed, 22 Aug 2007 13:47:14 +0200

On Aug 22, 2007, at 1:41 PM, Benoit SIGOURE wrote:

I think the line should be:

$(SED) -e 's,$${LOCALSTATEDIR},${localstatedir},g' $(top_srcdir)/ conf/ >$@

As noted by Bernd Jendrissek, there should be a backslash in there:
sed -e 's,\$${LOCALSTATEDIR},${localstatedir},g' $(top_srcdir)/conf/ >$@

So that sed doesn't recognize `$' as `end of line'. I didn't notice this because neither BSD sed nor GNU sed seem to consider `$' as `end of line' if it's not actually at the end of the pattern.


Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory

Attachment: PGP.sig
Description: This is a digitally signed message part

reply via email to

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