You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E.g., with v0.6.0, bat --list-languages | head results in
…
thread 'main' panicked at 'failed printing to stdout: Broken pipe (os error 32)', libstd/io/stdio.rs:692:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.
on both macOS and Linux.
The text was updated successfully, but these errors were encountered:
We have fixed this for bat's general behavior (see #9 and 1f2bcf5), so things like bat README.md | head work fine, but we should also fix this when using --list-languages and --list-themes and probably the bat cache subcommand as well.
The strategy is simple. Just replace all print!(...) and println!(...) macros by write!(...)? and writeln!(...)?.
E.g., with v0.6.0,
bat --list-languages | head
results inon both macOS and Linux.
The text was updated successfully, but these errors were encountered: