diff --git a/rustup-init.sh b/rustup-init.sh index 2d324e08a0..f7d13eef44 100755 --- a/rustup-init.sh +++ b/rustup-init.sh @@ -19,6 +19,10 @@ has_local() { has_local 2>/dev/null || alias local=typeset +# zsh does not split words by default, Required for curl retry arguments below. +if [ -n "$ZSH_VERSION" ]; then + setopt shwordsplit +fi set -u