{"action":"created","issue":{"url":"https://api.github.com/repos/jarcane/wf/issues/2","repository_url":"https://api.github.com/repos/jarcane/wf","labels_url":"https://api.github.com/repos/jarcane/wf/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jarcane/wf/issues/2/comments","events_url":"https://api.github.com/repos/jarcane/wf/issues/2/events","html_url":"https://github.com/jarcane/wf/issues/2","id":368179560,"node_id":"MDU6SXNzdWUzNjgxNzk1NjA=","number":2,"title":"Broken pipe error when piping the output to `head`","user":{"login":"miikka","id":34607,"node_id":"MDQ6VXNlcjM0NjA3","avatar_url":"https://avatars3.githubusercontent.com/u/34607?v=4","gravatar_id":"","url":"https://api.github.com/users/miikka","html_url":"https://github.com/miikka","followers_url":"https://api.github.com/users/miikka/followers","following_url":"https://api.github.com/users/miikka/following{/other_user}","gists_url":"https://api.github.com/users/miikka/gists{/gist_id}","starred_url":"https://api.github.com/users/miikka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miikka/subscriptions","organizations_url":"https://api.github.com/users/miikka/orgs","repos_url":"https://api.github.com/users/miikka/repos","events_url":"https://api.github.com/users/miikka/events{/privacy}","received_events_url":"https://api.github.com/users/miikka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-09T12:12:53Z","updated_at":"2018-10-10T06:10:10Z","closed_at":null,"author_association":"NONE","body":"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.\r\n\r\n```\r\n% wf -f < text.txt | head -1\r\nthe 2228\r\nthread 'main' panicked at 'failed printing to stdout: Broken pipe (os error 32)', libstd/io/stdio.rs:692:9\r\nnote: Run with `RUST_BACKTRACE=1` for a backtrace.\r\n```\r\n\r\nI'm using wf 0.2.0 on macOS."},"comment":{"url":"https://api.github.com/repos/jarcane/wf/issues/comments/428449805","html_url":"https://github.com/jarcane/wf/issues/2#issuecomment-428449805","issue_url":"https://api.github.com/repos/jarcane/wf/issues/2","id":428449805,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODQ0OTgwNQ==","user":{"login":"miikka","id":34607,"node_id":"MDQ6VXNlcjM0NjA3","avatar_url":"https://avatars3.githubusercontent.com/u/34607?v=4","gravatar_id":"","url":"https://api.github.com/users/miikka","html_url":"https://github.com/miikka","followers_url":"https://api.github.com/users/miikka/followers","following_url":"https://api.github.com/users/miikka/following{/other_user}","gists_url":"https://api.github.com/users/miikka/gists{/gist_id}","starred_url":"https://api.github.com/users/miikka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miikka/subscriptions","organizations_url":"https://api.github.com/users/miikka/orgs","repos_url":"https://api.github.com/users/miikka/repos","events_url":"https://api.github.com/users/miikka/events{/privacy}","received_events_url":"https://api.github.com/users/miikka/received_events","type":"User","site_admin":false},"created_at":"2018-10-10T06:10:10Z","updated_at":"2018-10-10T06:10:10Z","author_association":"NONE","body":"It gives me the same error. I googled a bit and turns out other people are having the same problem: https://github.com/rust-lang/rust/issues/46016"}}
{"actor":{"display_login":"miikka"}}