Skip to content

Commit 3d6f8ea

Browse files
alexhudspithrami3l
authored andcommitted
Fix zsh word splitting for curl "--retry 3"
1 parent 900d3d6 commit 3d6f8ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rustup-init.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ has_local() {
1919

2020
has_local 2>/dev/null || alias local=typeset
2121

22+
# zsh does not split words by default, Required for curl retry arguments below.
23+
if [ -n "$ZSH_VERSION" ]; then
24+
setopt shwordsplit
25+
fi
2226

2327
set -u
2428

0 commit comments

Comments
 (0)