[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug#982208: coreutils: cat -E, --show-ends display strangely when CR
From: |
Jim Meyering |
Subject: |
Re: Bug#982208: coreutils: cat -E, --show-ends display strangely when CR (\ r) is included. |
Date: |
Tue, 9 Feb 2021 15:07:55 -0800 |
On Tue, Feb 9, 2021 at 3:01 PM Pádraig Brady <P@draigbrady.com> wrote:
...
> I agree the current behavior is less than useful because:
>
> * \r\n is common a line end combination
> * catting such a file without options causes it to display normally
> * overwriting the first char with $, loses info
>
> I propose to change the upstream coreutils project
> as per the attached, to extend the --show-ends option
> to show \r as ^M when the following character is \n.
+1 patch looks fine. Thanks!