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: address@hidden
[mailto:address@hidden On Behalf Of
address@hidden
Sent: Sunday, July 17, 2011 10:00 AM
To: address@hidden
Subject: m4-discuss Digest, Vol 72, Issue 1
Send m4-discuss mailing list submissions to
address@hidden
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
address@hidden
You can reach the person managing the list at
address@hidden
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)"<address@hidden>
To: address@hidden
Subject: Simple method of including a file that bypasses macro
expansion
Message-ID:
<address@hidden>
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
*****************************************