[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proper m4 quoting
From: |
Eric Blake |
Subject: |
Re: Proper m4 quoting |
Date: |
Thu, 14 Apr 2011 13:24:19 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.9 |
On 04/14/2011 01:04 PM, Too, Justin A. wrote:
>> test_executable="$$(top_builddir)/scripts/test/bin/my_test"
>>
>> and, at shell time, $$ is the process id, explaining your results.
>
> I think in my rush, I was confusing Automake/m4 issues, hence the '$$',
> since I was trying to keep the '$'.
Yep - inside makefiles, for shell code where you want a $ to be visible
to the shell instead of make, you have to escape $ as $$. It's a bit of
a shame that all three tools (m4, shell, make) have subtly different
behaviors on when $ is special.
>
> Thank you for your help, everything is good to go now.
Glad to hear it.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature