Subject: Re: bug#10620: Improper handling of newline characters

From: Bob Proulx <[email-masked]>
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