Closed
Description
Problem
zsh does not enable word-splitting by default and this causes the rustup-init.sh script to fail with:
info: downloading installer
curl: option --retry 3 -C -: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
This is because zsh is interpreting --retry 3 -C -
as a single argument, instead of splitting to --retry
, 3
, -C
, -
.
Tested with Linux zsh 5.8.1.
Steps
- Download rustup-init.sh to a machine with a curl supporting
curl --retry
- Execute
zsh rustup-init.sh
Possible Solution(s)
Use setopt shwordsplit
when zsh is detected.
Notes
No response
Rustup version
rustup-init 1.26.0 (5af9b9484 2023-04-05)
Installed toolchains
N/A