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

Eric Blake <[email protected]>
Newsgroups gmane.comp.gnu.m4.general
Organization Red Hat
Message-ID <[email protected]>
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   [email protected]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.