bug-coreutils
[Top][All Lists]
Advanced

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

bug#14299: Incorrect output of `printf "\\n"`


From: Davide Brini
Subject: bug#14299: Incorrect output of `printf "\\n"`
Date: Mon, 29 Apr 2013 17:44:02 +0200

On Sun, 28 Apr 2013 18:44:23 +0000, Pavel Elkind <address@hidden> wrote:

> Dear developers,
> 
> I found the following potential bug in printf (version 8.17).
> 
> Actual result: 
> `printf "\\n"` prints a newline caracter.
> 
> Expected result:
> `printf "\\n"` prints a sequence of two individual characters, '\' and
> 'n', like '\n',  but  not a newline character.
> 
> Please address the above issue,

printf '\\n'

is what you want. Printf has nothing to do with this, it's the shell that
interpolates \\ when it's in double quotes.


-- 
D.





reply via email to

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