{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/31036","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/31036/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/31036/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/31036/events","html_url":"https://github.com/rust-lang/rust/issues/31036","id":127577026,"number":31036,"title":"Convert all `sh` scripts to `bash` scripts","user":{"login":"brson","id":147214,"avatar_url":"https://avatars.githubusercontent.com/u/147214?v=3","gravatar_id":"","url":"https://api.github.com/users/brson","html_url":"https://github.com/brson","followers_url":"https://api.github.com/users/brson/followers","following_url":"https://api.github.com/users/brson/following{/other_user}","gists_url":"https://api.github.com/users/brson/gists{/gist_id}","starred_url":"https://api.github.com/users/brson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brson/subscriptions","organizations_url":"https://api.github.com/users/brson/orgs","repos_url":"https://api.github.com/users/brson/repos","events_url":"https://api.github.com/users/brson/events{/privacy}","received_events_url":"https://api.github.com/users/brson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-20T00:54:54Z","updated_at":"2016-01-20T17:56:53Z","closed_at":null,"body":"We've long stuck to posix shell for our bash scripts with the rationale that posix shell is the most compatible. Sometimes this has been painful. Most recently, [IllumOS](https://github.com/rust-lang/rust/pull/28589) *doesn't have a working posix shell*, but it *does* have bash. Conversely, I have no real-world examples of platforms people are using Rust on that only have `sh`.\r\n\r\nI'm near the breaking point of my sympathy for `sh` now.\r\n\r\nThis must be done in-tree, as well as in rustup.sh and rust-installer.\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/173304366","html_url":"https://github.com/rust-lang/rust/issues/31036#issuecomment-173304366","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/31036","id":173304366,"user":{"login":"wycats","id":4,"avatar_url":"https://avatars.githubusercontent.com/u/4?v=3","gravatar_id":"","url":"https://api.github.com/users/wycats","html_url":"https://github.com/wycats","followers_url":"https://api.github.com/users/wycats/followers","following_url":"https://api.github.com/users/wycats/following{/other_user}","gists_url":"https://api.github.com/users/wycats/gists{/gist_id}","starred_url":"https://api.github.com/users/wycats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wycats/subscriptions","organizations_url":"https://api.github.com/users/wycats/orgs","repos_url":"https://api.github.com/users/wycats/repos","events_url":"https://api.github.com/users/wycats/events{/privacy}","received_events_url":"https://api.github.com/users/wycats/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T17:56:53Z","updated_at":"2016-01-20T17:56:53Z","body":"For what it's worth, I've been playing with getting rust installed on non-standard platforms like aboriginal Linux and unrooted android recently and I can confirm that this is one of the biggest issues. \r\n\r\nThat said, the script itself is not perfectly compatible with busybox bash, which would be good to fix :)"}}