{"action":"created","issue":{"url":"https://api.github.com/repos/abo-abo/swiper/issues/153","labels_url":"https://api.github.com/repos/abo-abo/swiper/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/abo-abo/swiper/issues/153/comments","events_url":"https://api.github.com/repos/abo-abo/swiper/issues/153/events","html_url":"https://github.com/abo-abo/swiper/issues/153","id":89350569,"number":153,"title":"counsel-git-grep: Breaks when filenames contain colons","user":{"login":"rootzlevel","id":77743,"avatar_url":"https://avatars.githubusercontent.com/u/77743?v=3","gravatar_id":"","url":"https://api.github.com/users/rootzlevel","html_url":"https://github.com/rootzlevel","followers_url":"https://api.github.com/users/rootzlevel/followers","following_url":"https://api.github.com/users/rootzlevel/following{/other_user}","gists_url":"https://api.github.com/users/rootzlevel/gists{/gist_id}","starred_url":"https://api.github.com/users/rootzlevel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rootzlevel/subscriptions","organizations_url":"https://api.github.com/users/rootzlevel/orgs","repos_url":"https://api.github.com/users/rootzlevel/repos","events_url":"https://api.github.com/users/rootzlevel/events{/privacy}","received_events_url":"https://api.github.com/users/rootzlevel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-18T17:31:00Z","updated_at":"2015-06-19T12:46:53Z","closed_at":"2015-06-19T12:42:00Z","body":"The first colon seems to be taken as the separating character, but file names can contain colons. A current real life example for me were email files in an mbox.\r\n\r\n`M-x grep` seems to handle the case correctory"},"comment":{"url":"https://api.github.com/repos/abo-abo/swiper/issues/comments/113505101","html_url":"https://github.com/abo-abo/swiper/issues/153#issuecomment-113505101","issue_url":"https://api.github.com/repos/abo-abo/swiper/issues/153","id":113505101,"user":{"login":"rootzlevel","id":77743,"avatar_url":"https://avatars.githubusercontent.com/u/77743?v=3","gravatar_id":"","url":"https://api.github.com/users/rootzlevel","html_url":"https://github.com/rootzlevel","followers_url":"https://api.github.com/users/rootzlevel/followers","following_url":"https://api.github.com/users/rootzlevel/following{/other_user}","gists_url":"https://api.github.com/users/rootzlevel/gists{/gist_id}","starred_url":"https://api.github.com/users/rootzlevel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rootzlevel/subscriptions","organizations_url":"https://api.github.com/users/rootzlevel/orgs","repos_url":"https://api.github.com/users/rootzlevel/repos","events_url":"https://api.github.com/users/rootzlevel/events{/privacy}","received_events_url":"https://api.github.com/users/rootzlevel/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T12:46:53Z","updated_at":"2015-06-19T12:46:53Z","body":"I think --null does solve it:\r\n\r\n```\r\n% git --no-pager grep --full-name -n --no-color -i -e \"test\" --null | xxd\r\n00000000: 666f 6f3a 6261 7200 3100 7468 6973 2069  foo:bar.1.this i\r\n00000010: 7320 6120 7465 7374 0a                   s a test.\r\n```\r\nas you can see, there is a 0x00 byte after the file name, which cannot appear as part of it.\r\n\r\nI don't know how `M-x grep` does it, but it works in this case."}}