Closed thesamesam closed 1 year ago
If I try to take the first N results, I get the following:
$ time pk pkg source --sort --repo ~/g/ 'dev-ruby/*' | head -n 5 dev-ruby/puppetdb-termini-8.0.0::/home/sam/g/: 8.662ms dev-ruby/puppetdb-termini-7.13.0::/home/sam/g/: 9.919ms dev-ruby/mecab-ruby-0.996-r2::/home/sam/g/: 15.327ms dev-ruby/ruby-dict-0.9.4-r5::/home/sam/g/: 15.855ms dev-ruby/rrdtool-bindings-1.8.0::/home/sam/g/: 17.921ms thread 'main' panicked at 'failed printing to stdout: Broken pipe (os error 32)', library/std/src/io/stdio.rs:1008:9 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace real 0m1.425s user 0m18.482s sys 0m22.583s
Ah, that's because rust still ignores SIGPIPE by default which shouldn't be hard to fix for cli apps like this.
If I try to take the first N results, I get the following: