-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken pipe error when piping the output to head
#2
Comments
Hmm. That is odd. I don't have a Mac anymore to try this, but I can mess about on WSL. Out of curiosity, what do you get if instead you do |
It gives me the same error. I googled a bit and turns out other people are having the same problem: rust-lang/rust#46016 |
OK, thanks. I'll try and have a look at that tonight. Looks like there might be a work around using |
I've pushed a new version 0.2.1 that fixes the bug by adding the necessary error checking and early exit behavior with You can run |
Thanks! It works now. |
Hey, I just used wf for some data exploration and it was pretty useful! I tried to look up the most frequent word in a text and piped wf's output to head. I got the following error message. The error probably happens because head exits after it has printed the requested number of lines. I would expect a command-line tool like wf to handle piping to head gracefully.
I'm using wf 0.2.0 on macOS.
The text was updated successfully, but these errors were encountered: