GNU bug report logs - #14299
Incorrect output of `printf "\\n"`

Previous Next

Package: coreutils;

Reported by: Pavel Elkind <elkind <at> chalmers.se>

Date: Mon, 29 Apr 2013 00:20:02 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Pavel Elkind <elkind <at> chalmers.se>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: Incorrect output of  `printf "\\n"`
Date: Sun, 28 Apr 2013 18:44:23 +0000
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,

Many thanks,
Pavel



This bug report was last modified 12 years and 29 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.