m4-discuss
[Top][All Lists]
Advanced

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

Re: Having Trouble with m4 Input (m4 version 1.4.13)


From: Eric Blake
Subject: Re: Having Trouble with m4 Input (m4 version 1.4.13)
Date: Fri, 03 Sep 2010 11:55:10 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2

On 09/03/2010 10:14 AM, Jack J. Woehr wrote:
Tom Browder wrote:
my experience with m4 has not
been comforting.

m4 is not here to comfort you, but rather, to cast a merciless spotlight
on your syntactic inadequacies :)

define(`Min', include(`conf/MINOR'))

Oops. No quotes around the definition body!

That depends. I've seen intentional unquoted includes in a define(), if you want Min to be defined to the expansion of the contents of conf/MINOR (and thus be expanded a second time when Min is expanded, having read the file exactly once), rather than defining Min to be shorthand for including the file in-place every time Min is expanded.

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]