How do I make bat
use LF
and ^D
on Windows, similar to cat
on Linux instead of CR LF
and ^Z
?
#2884
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The app description says "A cat(1) clone", so I expected it to behave like
cat
more :)GNU coreutils
cat
, whether natively on Linux or through emulation such as Cygwin/MSYS2 on Windows, always usesLF
characters, and when doingcat | hexdump -Cv
, it waits for^D
before terminating.On Linux,
bat
behaves as I expect, usingLF
and waiting for^D
whencat
ing tohexdump
. On Windows, however, it usesCRLF
and waits for^Z
instead.I doubt there is a setting somewhere to change this, but it would be great if I could be pointed to where to patch my local install of
bat
to behave more like GNU coreutilscat
on Windows.Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions