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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to disable the
binarywarning message? For example, I have a line of text with aNULbyte, and piping it intobatreveals a warning. Interestingly, placing theNULbyte on a second line won't show the warning.Using the
--show-all/-Aflag doesn't show the warning but is not useful for my use case.I try to colorize my
zshhistory and pipe it intofzf.If the last command was a single line, then
batfails; if the last command was multiline, thenbatsucceeds as intended.EDIT1: Related #823
Beta Was this translation helpful? Give feedback.
All reactions