{"action":"created","issue":{"url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/908","repository_url":"https://api.github.com/repos/BurntSushi/ripgrep","labels_url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/908/labels{/name}","comments_url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/908/comments","events_url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/908/events","html_url":"https://github.com/BurntSushi/ripgrep/issues/908","id":319867573,"number":908,"title":"echo shell variable, ripgrep quit in the middle","user":{"login":"ncaq","id":2913112,"avatar_url":"https://avatars1.githubusercontent.com/u/2913112?v=4","gravatar_id":"","url":"https://api.github.com/users/ncaq","html_url":"https://github.com/ncaq","followers_url":"https://api.github.com/users/ncaq/followers","following_url":"https://api.github.com/users/ncaq/following{/other_user}","gists_url":"https://api.github.com/users/ncaq/gists{/gist_id}","starred_url":"https://api.github.com/users/ncaq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncaq/subscriptions","organizations_url":"https://api.github.com/users/ncaq/orgs","repos_url":"https://api.github.com/users/ncaq/repos","events_url":"https://api.github.com/users/ncaq/events{/privacy}","received_events_url":"https://api.github.com/users/ncaq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-03T10:36:09Z","updated_at":"2018-05-03T10:58:50Z","closed_at":null,"author_association":"NONE","body":"#### What version of ripgrep are you using?\r\n\r\n* ripgrep 0.8.1 -SIMD -AVX\r\n* ripgrep 0.8.1 (rev 6ffb4b7466) -SIMD -AVX\r\n\r\nI checkd in both version.\r\n\r\n#### How did you install ripgrep?\r\n\r\n* emerge ripgrep\r\n* cargo build --release\r\n\r\n#### What operating system are you using ripgrep on?\r\n\r\nGentoo GNU/Linux\r\n\r\n#### If this is a bug, what are the steps to reproduce the behavior?\r\n\r\n~~~txt\r\n2018-05-03T19:18:02 ncaq@strawberry/pts/6(0) ~/Downloads\r\n% ps aux > ps-aux.txt\r\n2018-05-03T19:18:07 ncaq@strawberry/pts/6(0) ~/Downloads\r\n% rg root ps-aux.txt|wc -l\r\n347\r\n2018-05-03T19:18:12 ncaq@strawberry/pts/6(0) ~/Downloads\r\n% ps_result=$(cat ps-aux.txt)\r\n2018-05-03T19:18:20 ncaq@strawberry/pts/6(0) ~/Downloads\r\n% echo $ps_result|rg root|wc -l\r\n203\r\n2018-05-03T19:18:52 ncaq@strawberry/pts/6(0) ~/Downloads\r\n% echo $ps_result|ag root|wc -l\r\n347\r\n~~~\r\n\r\n[ps-aux.txt](https://github.com/BurntSushi/ripgrep/files/1970488/ps-aux.txt)\r\n\r\n#### If this is a bug, what is the actual behavior?\r\n\r\n~~~txt\r\necho $ps_result|rg root|wc -l\r\n~~~\r\n\r\n~~~txt\r\n203\r\n~~~\r\n\r\n#### If this is a bug, what is the expected behavior?\r\n\r\n~~~txt\r\necho $ps_result|rg root|wc -l\r\n~~~\r\n\r\n~~~txt\r\n347\r\n~~~"},"comment":{"url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/comments/386258532","html_url":"https://github.com/BurntSushi/ripgrep/issues/908#issuecomment-386258532","issue_url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/908","id":386258532,"user":{"login":"BurntSushi","id":456674,"avatar_url":"https://avatars3.githubusercontent.com/u/456674?v=4","gravatar_id":"","url":"https://api.github.com/users/BurntSushi","html_url":"https://github.com/BurntSushi","followers_url":"https://api.github.com/users/BurntSushi/followers","following_url":"https://api.github.com/users/BurntSushi/following{/other_user}","gists_url":"https://api.github.com/users/BurntSushi/gists{/gist_id}","starred_url":"https://api.github.com/users/BurntSushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BurntSushi/subscriptions","organizations_url":"https://api.github.com/users/BurntSushi/orgs","repos_url":"https://api.github.com/users/BurntSushi/repos","events_url":"https://api.github.com/users/BurntSushi/events{/privacy}","received_events_url":"https://api.github.com/users/BurntSushi/received_events","type":"User","site_admin":false},"created_at":"2018-05-03T10:58:50Z","updated_at":"2018-05-03T10:58:50Z","author_association":"OWNER","body":"This is a very strange bug report, and I don't really understand what it is you're doing. In any case, I can't reproduce this:\r\n\r\n```\r\n$ rg root ps-aux.txt | wc -l\r\n347\r\n$ ag root ps-aux.txt | wc -l\r\n347\r\n$ grep root ps-aux.txt | wc -l\r\n347\r\n```\r\n\r\n```\r\n$ ps_result=$(cat ps-aux.txt)\r\n$ echo $ps_result | rg root | wc -l\r\n1\r\n$ echo $ps_result | ag root | wc -l\r\n1\r\n$ echo $ps_result | grep root | wc -l\r\n1\r\n```\r\n\r\nPlease provide more details on how to reproduce this."}}
{"actor":{"display_login":"BurntSushi"}}