$ bkt -- echo | head -n0
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }', /usr/local/google/home/diamondm/.cargo/registry/src/github.com-1ecc6299db9ec823/bkt-0.3.1/src/main.rs:77:48
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
In more typical use cases (e.g. head -n10) we'll only hit this error with sufficiently large output (IIRC ~60k lines on Linux), since the OS buffers output between processes, but either way bkt shouldn't blow up if its output descriptors close.
Example:
In more typical use cases (e.g.
head -n10
) we'll only hit this error with sufficiently large output (IIRC ~60k lines on Linux), since the OS buffers output between processes, but either waybkt
shouldn't blow up if its output descriptors close.