[Top][All Lists]

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

Re: [FYI] m4sugar: fix AS_VAR_GET regression.

From: Peter Rosin
Subject: Re: [FYI] m4sugar: fix AS_VAR_GET regression.
Date: Tue, 29 Jan 2013 15:21:29 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 2013-01-29 14:31, Gary V. Vaughan wrote:
> 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.

Right, to the shell "\n" is the same as "\\n", I see that now. It just
felt wrong to not escape the escape character. Sorry for the noise.


reply via email to

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