{"action":"opened","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/39924","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/39924/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/39924/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/39924/events","html_url":"https://github.com/Homebrew/homebrew/issues/39924","id":78525209,"number":39924,"title":"cp -q in expand_safe_system_args fails with \"cp: illegal option -- q\"","user":{"login":"SimonGreenhill","id":220169,"avatar_url":"https://avatars.githubusercontent.com/u/220169?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonGreenhill","html_url":"https://github.com/SimonGreenhill","followers_url":"https://api.github.com/users/SimonGreenhill/followers","following_url":"https://api.github.com/users/SimonGreenhill/following{/other_user}","gists_url":"https://api.github.com/users/SimonGreenhill/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonGreenhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonGreenhill/subscriptions","organizations_url":"https://api.github.com/users/SimonGreenhill/orgs","repos_url":"https://api.github.com/users/SimonGreenhill/repos","events_url":"https://api.github.com/users/SimonGreenhill/events{/privacy}","received_events_url":"https://api.github.com/users/SimonGreenhill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-20T13:23:52Z","updated_at":"2015-05-20T13:23:52Z","closed_at":null,"body":"Trying to install R --HEAD from homebrew-science failed as it calls:\r\n\r\n    class RDownloadStrategy < SubversionDownloadStrategy\r\n       def stage\r\n         quiet_safe_system \"cp\", \"-r\", @clone, Dir.pwd\r\n         Dir.chdir cache_filename\r\n       end\r\n    end\r\n\r\n\r\n.... and this in turn gets to L48 of [ download_strategy](https://github.com/Homebrew/homebrew/blob/d12b17e99b3071fba88fb5a6cbcefcbe136f7733/Library/Homebrew/download_strategy.rb#L48)\r\n\r\n    args.insert(2, '-q') unless ARGV.verbose?\r\n\r\n...which injects a -q. The command 'cp' doesn't have a -q option. \r\n\r\nI'm not sure if this is an issue for the [Formula](https://github.com/Homebrew/homebrew-science/blob/master/r.rb) or for ``quiet_safe_system``, but thought I'd document it here at least."}}