We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
shwordsplit
downloader()
1 parent a027d95 commit a9d6d3aCopy full SHA for a9d6d3a
rustup-init.sh
@@ -19,10 +19,9 @@ has_local() {
19
20
has_local 2>/dev/null || alias local=typeset
21
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
+is_zsh() {
+ [ -n "${ZSH_VERSION-}" ]
+}
26
27
set -u
28
@@ -575,6 +574,9 @@ ignore() {
575
574
# This wraps curl or wget. Try curl first, if not installed,
576
# use wget instead.
577
downloader() {
+ # zsh does not split words by default, Required for curl retry arguments below.
578
+ is_zsh && setopt local_options shwordsplit
579
+
580
local _dld
581
local _ciphersuites
582
local _err
0 commit comments