Subject: Re: Escape Character...
To: Julio Merino <jmmv@menta.net>
From: Ron Roskens <roskens@elfin.net>
List: tech-pkg
Date: 07/01/2003 08:30:37
On Tue, 1 Jul 2003, Julio Merino wrote:
> On Mon, 30 Jun 2003 15:23:35 -0600 (MDT)
> Yosep <yoskim@NMSU.Edu> wrote:
>
> > I have the following code in my Makefile
> >
> > my_RCS_ID= $NetBSD$
[ snipped ]
> > How can I fix this problem, so that I can have "$NetBSD" in place of
> > "@PREFIX"? Any would be greatly appreciated.
>
> Try with the Q modifier:
>
> ${SED} -e 's:@PREFIX@:${my_RCS_ID:Q}:' \
Doesn't work. The problem lies in associating the value to my_RCS_ID. $N
gets evaluated from the start. so to fix this you would solve it by
changing the value of my_RCS_ID from "$NetBSD$" to "$$NetBSD$$". RCS/CVS
will expand the $NetBSD$ sequence, but leave the surrounding $'s intack.
Ron