From f130d02efcceb1c3eefabf80b81f53a958061193 Mon Sep 17 00:00:00 2001 From: Hiroshi IKEGAMI Date: Fri, 22 Aug 2014 10:59:11 +0900 Subject: [PATCH] Fixed `nvm_version_greater` has syntax error in zsh-buildin-command `[` --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 6e9da50..bea76ee 100644 --- a/nvm.sh +++ b/nvm.sh @@ -100,7 +100,7 @@ nvm_version_greater() { LHS=$(echo "$1" | awk -F. '{for (i=1;i<=NF;++i) printf "%010d",$i}') local RHS RHS=$(echo "$2" | awk -F. '{for (i=1;i<=NF;++i) printf "%010d",$i}') - [ $LHS \> $RHS ]; + [ $LHS -gt $RHS ]; } nvm_version_dir() {