Subject: Re: Escape Character...
To: Ron Roskens <roskens@elfin.net>
From: Yosep <yoskim@NMSU.Edu>
List: tech-pkg
Date: 07/01/2003 10:57:08
Thanks, Ron. Your suggestion worked great!
And, thanks for everyone who replied to me!!!
Have a great day!
=============
|\/\/| | Yosep Kim
|,,,,| | NMSU Computer Lab Assistant
| | | Computer Science, B.S.
[|^ ^|] | New Mexico State Unversity
\__/ | http://web.nmsu.edu/~yoskim
=============
PHIL 4:13
On Tue, 1 Jul 2003, Ron Roskens wrote:
> 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
>