[Fix] `nvm debug` was printing a red herring error message in non-zsh.

Jordan Harband 2015-12-30 09:45:13 -08:00
parent 0aa3118de3
commit 6094dac1c1
1 changed files with 1 additions and 0 deletions

1
nvm.sh
View File

@ -1546,6 +1546,7 @@ nvm() {
"debug" )
local ZHS_HAS_SHWORDSPLIT_UNSET
ZHS_HAS_SHWORDSPLIT_UNSET=1
if nvm_has "setopt"; then
ZHS_HAS_SHWORDSPLIT_UNSET=$(setopt | command grep shwordsplit > /dev/null ; echo $?)
setopt shwordsplit