Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
500-internal-server-error opened this issue Mar 9, 2024 · 0 comments
Labels
question Further information is requested

Comments

@500-internal-server-error

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.

@500-internal-server-error 500-internal-server-error added the question Further information is requested label Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant