{"action":"created","issue":{"url":"https://api.github.com/repos/koalaman/shellcheck/issues/302","labels_url":"https://api.github.com/repos/koalaman/shellcheck/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/koalaman/shellcheck/issues/302/comments","events_url":"https://api.github.com/repos/koalaman/shellcheck/issues/302/events","html_url":"https://github.com/koalaman/shellcheck/issues/302","id":56760626,"number":302,"title":"SC2012: `find` is not an adequate replacement for `ls -ld` piped to `cut`","user":{"login":"stuartpb","id":572196,"avatar_url":"https://avatars.githubusercontent.com/u/572196?v=3","gravatar_id":"","url":"https://api.github.com/users/stuartpb","html_url":"https://github.com/stuartpb","followers_url":"https://api.github.com/users/stuartpb/followers","following_url":"https://api.github.com/users/stuartpb/following{/other_user}","gists_url":"https://api.github.com/users/stuartpb/gists{/gist_id}","starred_url":"https://api.github.com/users/stuartpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuartpb/subscriptions","organizations_url":"https://api.github.com/users/stuartpb/orgs","repos_url":"https://api.github.com/users/stuartpb/repos","events_url":"https://api.github.com/users/stuartpb/events{/privacy}","received_events_url":"https://api.github.com/users/stuartpb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-06T02:12:45Z","updated_at":"2015-02-06T07:44:36Z","closed_at":null,"body":"See https://github.com/plushu/plushu/blob/master/bin/plushu#L20:\r\n\r\n```bash\r\n    PLUSHU_USER=`ls -ld \"$PLUSHU_ROOT\" | cut -d' ' -f3`\r\n```\r\n\r\nThis is to determine the owner of a directory - it cannot be determined using `find`, and will have no problem with paths with filenames."},"comment":{"url":"https://api.github.com/repos/koalaman/shellcheck/issues/comments/73198226","html_url":"https://github.com/koalaman/shellcheck/issues/302#issuecomment-73198226","issue_url":"https://api.github.com/repos/koalaman/shellcheck/issues/302","id":73198226,"user":{"login":"acatton","id":3966553,"avatar_url":"https://avatars.githubusercontent.com/u/3966553?v=3","gravatar_id":"","url":"https://api.github.com/users/acatton","html_url":"https://github.com/acatton","followers_url":"https://api.github.com/users/acatton/followers","following_url":"https://api.github.com/users/acatton/following{/other_user}","gists_url":"https://api.github.com/users/acatton/gists{/gist_id}","starred_url":"https://api.github.com/users/acatton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acatton/subscriptions","organizations_url":"https://api.github.com/users/acatton/orgs","repos_url":"https://api.github.com/users/acatton/repos","events_url":"https://api.github.com/users/acatton/events{/privacy}","received_events_url":"https://api.github.com/users/acatton/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T07:44:36Z","updated_at":"2015-02-06T07:44:36Z","body":"Yes but `stat --format=\"%U\" \"$PLUSHU_ROOT\"` is."}}