From ad5242ea0be9dcc1ee3e69a29c492a7be5af8a4f Mon Sep 17 00:00:00 2001 From: rummik Date: Mon, 20 Aug 2012 18:02:38 -0300 Subject: [PATCH] Fix parse error in Zsh 4.3.17 --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 9e157a6..dd0de77 100755 --- a/nvm.sh +++ b/nvm.sh @@ -12,7 +12,7 @@ fi # Make zsh glob matching behave same as bash # This fixes the "zsh: no matches found" errors -if [[ `which unsetopt` ]]; then +if [ ! -z "$(which unsetopt)" ]; then unsetopt nomatch 2>/dev/null fi