GNU bug report logs - #10620
Improper handling of newline characters

Previous Next

Package: coreutils;

Reported by: Philippe Grégoire <gregoirep <at> hotmail.com>

Date: Fri, 27 Jan 2012 04:42:01 UTC

Severity: normal

Tags: moreinfo, notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


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

From: Bob Proulx <bob <at> proulx.com>
To: Philippe Grégoire <gregoirep <at> hotmail.com>
Cc: 10620 <at> debbugs.gnu.org
Subject: Re: bug#10620: Improper handling of newline characters
Date: Fri, 27 Jan 2012 03:12:12 -0700
Bob Proulx wrote:
> Philippe Grégoire wrote:
> > If I type the command '/usr/bin/printf "hi\b"', the result is as
> > expected -- "h" without a newline character.
> 
> Actually it is "hi\b".  It isn't "h".
> 
>   $ printf "hi\b\n" | od -tx1 -c
>   0000000 68 69 08 0a
>           h   i  \b  \n

Oops.  Cut-n-paste error.  Obviously I meant to say:

  $ printf "hi\b" | od -tx1 -c
  0000000 68 69 08
          h   i  \b

That didn't change anything else however.

Bob




This bug report was last modified 13 years and 114 days ago.

Previous Next


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