autoconf
[Top][All Lists]
Advanced

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

Re: awk comands inside m4 macros


From: Paul Eggert
Subject: Re: awk comands inside m4 macros
Date: Sat, 16 Jul 2005 19:19:17 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

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.)




reply via email to

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