diff --git a/nvm.sh b/nvm.sh index 49ed0e9..10631fe 100755 --- a/nvm.sh +++ b/nvm.sh @@ -79,7 +79,7 @@ nvm_ls() if [[ "$PATTERN" == v?*.?*.?* ]]; then VERSIONS="$PATTERN" else - VERSIONS=`nvm_set_nullglob; basename -a $NVM_DIR/v${PATTERN}* 2>/dev/null | sort -t. -k 1.2,1n -k 2,2n -k 3,3n` + VERSIONS=`nvm_set_nullglob; basename $NVM_DIR/v${PATTERN}* 2>/dev/null | sort -t. -k 1.2,1n -k 2,2n -k 3,3n` fi if [ ! "$VERSIONS" ]; then echo "N/A"