mgdm / htmlq

Like jq, but for HTML.
MIT License
7k stars 107 forks source link

htmlq 0.4.0: code: 32, kind: BrokenPipe, message: "Broken pipe" #73

Open emmanuelrosa opened 2 weeks ago

emmanuelrosa commented 2 weeks ago

I get a "broken pipe" error when piping the output of htmlq to a command which doesn't allow htmlq to finish, such as head:

RUST_BACKTRACE=1 curl --silent https://nixos.org | htmlq -a href a | head -n 1
/
thread 'main' panicked at src/main.rs:90:69:
called `Result::unwrap()` on an `Err` value: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace