htmlq icon indicating copy to clipboard operation
htmlq copied to clipboard

Broken pipe error

Open honzajde opened this issue 2 years ago • 2 comments

This is ok: cat article.html | htmlq --pretty 'main' | head -30

This is not: cat article.html | htmlq --pretty 'main *:not(a)' | head -30 Error: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }

honzajde avatar Sep 24 '21 14:09 honzajde

I'm experiencing a similar error on FreeBSD 14.0-CURRENT:

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

htmlq version: htmlq-0.3.0_1, built with rust-1.56.0.

0mp avatar Nov 08 '21 14:11 0mp

It should be safe to simply silence this once specific error

pbsds avatar Jan 11 '22 22:01 pbsds