]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: cat -E: mention ^M$ output possibility
authorPádraig Brady <P@draigBrady.com>
Sun, 23 Nov 2025 12:14:11 +0000 (12:14 +0000)
committerPádraig Brady <P@draigBrady.com>
Sun, 23 Nov 2025 12:16:32 +0000 (12:16 +0000)
* src/cat.c (usage): Document the ^M$ combination
which is output for \r\n line endings.
Fixes https://github.com/coreutils/coreutils/issues/130

src/cat.c

index 2a3c1d18a0319527e0a375f8c6dd657ad83a4597..6b86968635cb70ff87c9b2c9b56e2aa85ce4df93 100644 (file)
--- a/src/cat.c
+++ b/src/cat.c
@@ -101,7 +101,7 @@ Concatenate FILE(s) to standard output.\n\
   -A, --show-all           equivalent to -vET\n\
   -b, --number-nonblank    number nonempty output lines, overrides -n\n\
   -e                       equivalent to -vE\n\
-  -E, --show-ends          display $ at end of each line\n\
+  -E, --show-ends          display $ or ^M$ at end of each line\n\
   -n, --number             number all output lines\n\
   -s, --squeeze-blank      suppress repeated empty output lines\n\
 "), stdout);