GNU bug report logs - #30535
Output buffer overwritten when CR in file

Previous Next

Package: grep;

Reported by: Wayne Gemmell <wayne <at> gemmell.co.za>

Date: Mon, 19 Feb 2018 17:31:02 UTC

Severity: wishlist

Merged with 30652

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Wayne Gemmell <wayne <at> gemmell.co.za>, 30535 <at> debbugs.gnu.org
Subject: bug#30535: Output buffer overwritten when CR in file
Date: Mon, 19 Feb 2018 12:13:17 -0800
Wayne Gemmell wrote:
> I would expect the CR to be output verbatim

It is output verbatim, just as you expect. For example:

$ printf 'messag1\rlogin\rmask' >test.log
503-day $ grep --color=never login test.log | od -c
0000000   m   e   s   s   a   g   1  \r   l   o   g   i   n  \r   m   a
0000020   s   k  \n
0000023




This bug report was last modified 5 years and 168 days ago.

Previous Next


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