Skip to content

Piping into things that don't read all their input (e.g. head) should not result in an error. #232

@clonezone

Description

@clonezone

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions