-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Bat syntax highlighting doesn't play nicely with backslashes #2803
Comments
I'm using same bat version:
|
presumably those same examples would look the same even without piping into bat... I see something similar on Linux with just |
Wait, you're right!! Even without But I must admit, I'm curious why @keith-hall and I see the same behavior (even with just |
I don't have an echo alias, but I am running |
Aha, that could be it. Fish vs zsh is definitely a nontrivial difference. Anyway, this behavior is annoying, but not |
Sorry for disregarding parts of the default issue template. I think the following examples should speak for themselves and be easily reproducible. All examples generated with iTerm2 on MacOS Sonoma 14.1.2 and RedHat Linux.
I suspect
\
sometimes confusesbat
into perhaps incorrectly interpreting things as control characters?How did you install
bat
?Homebrew.
bat version and environment
❯ bat --diagnostic
Software version
bat 0.24.0
Operating system
macOS 14.1.2 (Darwin 23.1.0)
Command-line
Environment variables
System Config file
Could not read contents of '/etc/bat/config': No such file or directory (os error 2).
Config file
Could not read contents of '/Users//.config/bat/config': No such file or directory (os error 2).
Custom assets metadata
Could not read contents of '/Users//.cache/bat/metadata.yaml': No such file or directory (os error 2).
Custom assets
'/Users//.cache/bat' not found
Compile time information
Less version
The text was updated successfully, but these errors were encountered: