autoconf
[Top][All Lists]
Advanced

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

Re: awk comands inside m4 macros


From: Chris Coleman
Subject: Re: awk comands inside m4 macros
Date: Mon, 18 Jul 2005 08:56:54 +0100
User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206)

Thankyou to all for the replies.

This makes musch more sense now.

Cheers
Chris

Paul Eggert wrote:

Stepan Kasal <address@hidden> writes:

I noticed that Paul Eggert uses '{print $ 1}'.

Yes, I found that to be by far the best solution, as '$ 1' makes it
clear that it's the Awk '$1' rather than the M4 '$1'.

The $[1], [$]1, and $[]1 solutions are used when you're trying to
quote the m4 '$1', and they work for Awk too, but it might confuse the
reader into thinking that another level of M4 quoting might be
involved.  (The @S|@1 solution is too ugly for words, of course.)


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


This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.





reply via email to

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