Disable Binary Warning for Single Lines? #2971
Replies: 1 comment 3 replies
-
as you've already found out, Lines 435 to 444 in 8f8c953 there is no other way to remove this warning right now, and indeed you don't just want to disable the warning but to output the actual first line. Perhaps pre-processing the input would be a suitable solution - fake it all as being multiline by adding a newline to the end of each entry being passed into |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to disable the
binary
warning message? For example, I have a line of text with aNUL
byte, and piping it intobat
reveals a warning. Interestingly, placing theNUL
byte on a second line won't show the warning.Using the
--show-all/-A
flag doesn't show the warning but is not useful for my use case.I try to colorize my
zsh
history and pipe it intofzf
.If the last command was a single line, then
bat
fails; if the last command was multiline, thenbat
succeeds as intended.EDIT1: Related #823
Beta Was this translation helpful? Give feedback.
All reactions