[Top][All Lists]

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

Re: Why doesn't this quote properly?

From: Stepan Kasal
Subject: Re: Why doesn't this quote properly?
Date: Mon, 22 Nov 2004 13:04:19 +0100
User-agent: Mutt/1.4.1i


On Sun, Nov 21, 2004 at 12:23:13AM -0800, Noah Misch wrote:
> In general, always double-quote a macro argument that you wish to make a
> literal; that is, an argument in which m4 should not expand quotation or macro
> calls.  Quote an argument only once to simply protect internal commas and
> unmatched parentheses.  The node ``Autoconf Language'' describes this.

of course, we all omit the double-quoting brackets for simple strings where we
don't expect that m4 expansion might interfere.

But as Noah said, there is no point to single-quote them.

Please note that there is a trap: the ``description texts'', like in
AS_HELP_STRING or AC_DEFINE.  These strings are subject to line breaking, so 
are not ``literal strings'' and you may not double-quote them.

(I'm writing a patch to the autoconf manual which would mention this.)

Have a nice day,

reply via email to

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