[Fix] `nvm debug` was printing a red herring error message in non-zsh.
parent
0aa3118de3
commit
6094dac1c1
1
nvm.sh
1
nvm.sh
|
@ -1546,6 +1546,7 @@ nvm() {
|
||||||
|
|
||||||
"debug" )
|
"debug" )
|
||||||
local ZHS_HAS_SHWORDSPLIT_UNSET
|
local ZHS_HAS_SHWORDSPLIT_UNSET
|
||||||
|
ZHS_HAS_SHWORDSPLIT_UNSET=1
|
||||||
if nvm_has "setopt"; then
|
if nvm_has "setopt"; then
|
||||||
ZHS_HAS_SHWORDSPLIT_UNSET=$(setopt | command grep shwordsplit > /dev/null ; echo $?)
|
ZHS_HAS_SHWORDSPLIT_UNSET=$(setopt | command grep shwordsplit > /dev/null ; echo $?)
|
||||||
setopt shwordsplit
|
setopt shwordsplit
|
||||||
|
|
Loading…
Reference in New Issue