sharkdp/bat

How do I make `bat` use `LF` and `^D` on Windows, similar to `cat` on Linux instead of `CRLF` and `^Z`?

500-internal-server-error opened this issue · 0 comments

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 uses LF characters, and when doing cat | hexdump -Cv, it waits for ^D before terminating.

On Linux, bat behaves as I expect, using LF and waiting for ^D when cating to hexdump. On Windows, however, it uses CRLF 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 coreutils cat on Windows.

Thanks in advance.