mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
[Fix] nvm debug
was printing a red herring error message in non-zsh.
This commit is contained in:
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
Block a user