Date: Sat, 31 Jul 2004 02:41:48 +0300 From: Ion-Mihai Tetcu <itetcu@people.tecnik93.com> To: Scot Hetzel <swhetzel@gmail.com> Cc: ports@freebsd.org Subject: Re: How to escape ${something} (not to expand it) in a Makefile ? Message-ID: <20040731024148.29430042@it.buh.tecnik93.com> In-Reply-To: <790a9fff04073012556938b2c3@mail.gmail.com> References: <20040730223646.5db579fe@it.buh.tecnik93.com> <790a9fff04073012556938b2c3@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 30 Jul 2004 14:55:33 -0500 Scot Hetzel <swhetzel@gmail.com> wrote: > On Fri, 30 Jul 2004 22:36:46 +0300, Ion-Mihai Tetcu > <itetcu@people.tecnik93.com> wrote: > > Hi, > > > > I'm out of ideas with this. Bellow I need to have ${LOCALBASE} expanded > > to its value and the rest of $... to be passed verbatim. > > Each combination of quoting and escaping I've tried the last 2 1/2 hours > > dons't work. Could someone please point me to the right doc to read or > > explain how does this work ? > > > > RUN_DEPENDS+='--with-delivery-agent=${LOCALBASE}/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} $u' > > > You would use \$ to escape the dollar sign in a Makefile. Also you > may need to use three \ ( \\\$ ). This will simply produce three \\\ checking for delivery agent... /usr/local/cyrus/bin/deliver -e -r \\\ -m \\\ \\\ \\\ Double dollars works. Thanks everyone. -- IOnut Unregistered ;) FreeBSD "user"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040731024148.29430042>