rust-lang / prev.rust-lang.org

The previous Rust website. The current website's code is at https://github.com/rust-lang/www.rust-lang.org.
https://prev.rust-lang.org
Apache License 2.0
151 stars 340 forks source link

Replace 'sh' with 'bash' in curl install line #1179

Open Mno-hime opened 6 years ago

Mno-hime commented 6 years ago

On my system (OpenIndiana, illumos kernel) sh is:

$ sh --version
  version         sh (AT&T Research) 93t+ 2010-03-05

So, the suggested execution of rustup.sh fails:

$ curl https://sh.rustup.rs -sSf | sh
sh[174]: local: not found [No such file or directory]
sh[175]: local: not found [No such file or directory]
sh: line 177: _ossh: line 177: : parameter not set

However, following does the expected thing:

$ curl https://sh.rustup.rs -sSf | bash
rustup: unrecognized OS type: SunOS

I think bash should be suggested instead of plain sh.