{"action":"created","issue":{"url":"https://api.github.com/repos/tj/git-extras/issues/370","labels_url":"https://api.github.com/repos/tj/git-extras/issues/370/labels{/name}","comments_url":"https://api.github.com/repos/tj/git-extras/issues/370/comments","events_url":"https://api.github.com/repos/tj/git-extras/issues/370/events","html_url":"https://github.com/tj/git-extras/pull/370","id":75292522,"number":370,"title":"git-effort: replace \"wc | cut\" with \"wc | awk\"","user":{"login":"phigoro","id":9573190,"avatar_url":"https://avatars.githubusercontent.com/u/9573190?v=3","gravatar_id":"","url":"https://api.github.com/users/phigoro","html_url":"https://github.com/phigoro","followers_url":"https://api.github.com/users/phigoro/followers","following_url":"https://api.github.com/users/phigoro/following{/other_user}","gists_url":"https://api.github.com/users/phigoro/gists{/gist_id}","starred_url":"https://api.github.com/users/phigoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phigoro/subscriptions","organizations_url":"https://api.github.com/users/phigoro/orgs","repos_url":"https://api.github.com/users/phigoro/repos","events_url":"https://api.github.com/users/phigoro/events{/privacy}","received_events_url":"https://api.github.com/users/phigoro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-11T17:14:17Z","updated_at":"2015-05-11T19:21:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tj/git-extras/pulls/370","html_url":"https://github.com/tj/git-extras/pull/370","diff_url":"https://github.com/tj/git-extras/pull/370.diff","patch_url":"https://github.com/tj/git-extras/pull/370.patch"},"body":"It looks \"cut\" may have different behaviour, e.g. BSD one works the way\r\ngit-effort doesn't expect. \"awk\" looks to be one of possible fixes here."},"comment":{"url":"https://api.github.com/repos/tj/git-extras/issues/comments/101023547","html_url":"https://github.com/tj/git-extras/pull/370#issuecomment-101023547","issue_url":"https://api.github.com/repos/tj/git-extras/issues/370","id":101023547,"user":{"login":"phigoro","id":9573190,"avatar_url":"https://avatars.githubusercontent.com/u/9573190?v=3","gravatar_id":"","url":"https://api.github.com/users/phigoro","html_url":"https://github.com/phigoro","followers_url":"https://api.github.com/users/phigoro/followers","following_url":"https://api.github.com/users/phigoro/following{/other_user}","gists_url":"https://api.github.com/users/phigoro/gists{/gist_id}","starred_url":"https://api.github.com/users/phigoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phigoro/subscriptions","organizations_url":"https://api.github.com/users/phigoro/orgs","repos_url":"https://api.github.com/users/phigoro/repos","events_url":"https://api.github.com/users/phigoro/events{/privacy}","received_events_url":"https://api.github.com/users/phigoro/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T19:21:38Z","updated_at":"2015-05-11T19:21:38Z","body":"I've checked the same with GNU coreutils:\r\n```\r\n$ wc -l bin/git-effort\r\n145 bin/git-effort\r\n$ wc -l bin/git-effort | cut -d' ' -f1\r\n145\r\n$ wc -l bin/git-effort | awk '{print $1}'\r\n145\r\n```\r\nSo, \"wc\" looks to be \"the one\", i.e. behavior diff between GNU & BSD ones."}}