Re: [FYI] m4sugar: fix AS_VAR_GET regression.

"Gary V. Vaughan" <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.patches
Message-ID <[email protected]>
Hi Peter,

On 29 Jan 2013, at 20:17, Peter Rosin <[email protected]> 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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.