Re: Proper m4 quoting

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

 



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   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux