autoconf-patches
[Top][All Lists]
Advanced

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

Re: [FYI] m4sugar: fix AS_VAR_GET regression.


From: Gary V. Vaughan
Subject: Re: [FYI] m4sugar: fix AS_VAR_GET regression.
Date: Tue, 29 Jan 2013 20:31:32 +0700

Hi Peter,

On 29 Jan 2013, at 20:17, Peter Rosin <address@hidden> wrote:
> On 2013-01-29 13:27, Gary V. Vaughan wrote:
>> 
>> Normally, @command{printf} is safer and easier to use than @command{echo}
>> -and @command{echo -n}.  Thus, you should use @command{printf '%s\n'}
>> +and @command{echo -n}.  Thus, you should use @command{printf "%s\n"}
> 
> Shouldn't it be
> 
>  printf "%s\\n"
> 
> when you write it outside single quotes?

Apparently not; before my original patch, AS_ECHO would (under the right
circumstances) expand to 'printf "%s\n"' (single backslash), and indeed
passes the testsuite again now that I've patched it to expand to the same
under all circumstances.

Cheers,
-- 
Gary V. Vaughan (gary AT gnu DOT org)



reply via email to

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