{"action":"opened","issue":{"url":"https://api.github.com/repos/jasonhall/codesearch/issues/10","labels_url":"https://api.github.com/repos/jasonhall/codesearch/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/jasonhall/codesearch/issues/10/comments","events_url":"https://api.github.com/repos/jasonhall/codesearch/issues/10/events","html_url":"https://github.com/jasonhall/codesearch/issues/10","id":57509111,"number":10,"title":"csearch/cgrep exit with status 1 regardless of matches found or not","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jasonhall/codesearch/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/jasonhall/codesearch/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/jasonhall/codesearch/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-12T19:42:27Z","updated_at":"2015-02-12T19:42:27Z","closed_at":null,"body":"```\nWhat steps will reproduce the problem?\n1. csearch int\n2. echo $?\n3. csearch SomeStringNotAppearingInYourSourceTree\n4. echo $?\n\nWhat is the expected output? What do you see instead?\nIn both cases, a '1' is displayed indicating that csearch believes it found no \nmatches.  This is because the Grep.Match field is not updated when a match is \nfound.\n\nWhat version of the product are you using? On what operating system?\ntip, darwin\n\nPlease provide any additional information below.\nA one line fix setting g.Match = true in match.go:Grep.Reader():430 should fix \nthis.\n```\n\n-----\nOriginal issue reported on code.google.com by dgryski on 29 Jan 2012 at 8:27"}}