From 0534872e0f5f3451f7aca45fc0c957fc49424a6b Mon Sep 17 00:00:00 2001 From: egilkh Date: Sat, 12 Jul 2014 19:33:28 +0200 Subject: [PATCH] Should escape grep in nvm_ls --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 4d8b049..a782441 100644 --- a/nvm.sh +++ b/nvm.sh @@ -159,7 +159,7 @@ nvm_ls() { fi else VERSIONS=`find "$NVM_DIR/" -maxdepth 1 -type d -name "$(nvm_format_version $PATTERN)*" -exec basename '{}' ';' \ - | sort -t. -u -k 1.2,1n -k 2,2n -k 3,3n | grep -v '^ *\.'` + | sort -t. -u -k 1.2,1n -k 2,2n -k 3,3n | \grep -v '^ *\.'` fi if [ -z "$VERSIONS" ]; then echo "N/A"