Subject: bug#30535: Output buffer overwritten when CR in file

From: Paul Eggert <[email-masked]>
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