RE: m4-discuss Digest, Vol 72, Issue 1

"John Calcote" <[email protected]>
Newsgroups gmane.comp.gnu.m4.general
Message-ID <[email protected]>
Hi John,

I see exactly what you want, but I'm not sure what you're asking for is
reasonable. Why would you want to run a file though a macro processor and
not have it process any macros? Given your original input files, "a" and
"b", consider this sequence of commands: 

cat a | m4 > out.txt
cat b >> out.txt

This would see to accomplish exactly what you want, wouldn't it?

Regards,
John Calcote

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Sunday, July 17, 2011 10:00 AM
To: [email protected]
Subject: m4-discuss Digest, Vol 72, Issue 1

Send m4-discuss mailing list submissions to
	[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.gnu.org/mailman/listinfo/m4-discuss
or, via email, send a message with subject or body 'help' to
	[email protected]

You can reach the person managing the list at
	[email protected]

When replying, please edit your Subject line so it is more specific than
"Re: Contents of m4-discuss digest..."


Today's Topics:

   1. Simple method of including a file that bypasses macro
      expansion (John Allsup (M4))


----------------------------------------------------------------------

Message: 1
Date: Sun, 17 Jul 2011 08:15:04 +0100 (BST)
From: "John Allsup (M4)" <[email protected]>
To: [email protected]
Subject: Simple method of including a file that bypasses macro
	expansion
Message-ID:
	
<315299693.53381.1310886904889.JavaMail.open-xchange@oxltgw02.schlund.de>
	
Content-Type: text/plain; charset="utf-8"

Hi,
?
I am relatively new to m4, but can't seem to find an equivalent to include
that bypasses macro expansion.
?
Suppose file 'a' contains
? hello world
and file 'b' contains
? goodbye world
and in my m4 I have defined
? define(world,and).
I a macro which I will call 'oinclude' such that ? include(a) oinclude(b)
expands to ? hello and goodbye world.

Is there a simple method?
?
Thanks,
?
John?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
</archive/html/m4-discuss/attachments/20110717/1a5f3c41/attachment.html>

End of m4-discuss Digest, Vol 72, Issue 1
*****************************************
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.