Dear Maintainer, When I create a text file with a newline code of "\r\n" and `cat` with the `-E, --show-ends` option, "$" is displayed at the beginning of the line. When `-A, --show-all` is used, it looks normal. - Create a file for \r\n - `-E, --show-ends` option - `-A, --show-all` option
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. thanks, Pádraig
On Tue, Feb 9, 2021 at 3:01 PM Pádraig Brady <P@draigbrady.com> wrote: ... +1 patch looks fine. Thanks!