We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 91ce41b + b76d43e commit 9787c43Copy full SHA for 9787c43
nvm-exec
@@ -10,4 +10,4 @@ else
10
nvm use > /dev/null || (echo "No .nvmrc file found" >&2 && exit 127)
11
fi
12
13
-exec $@
+exec "$@"
test/slow/nvm exec/Running "nvm exec 0.x" should work
@@ -6,8 +6,10 @@ die () { echo $@ ; exit 1; }
6
7
nvm use 0.10
8
NPM_VERSION_TEN="$(npm --version)"
9
+TEST_STRING="foo bar"
nvm use 0.11.7 && [ "$(node --version)" = "v0.11.7" ] || die "\`nvm use\` failed!"
[ "$(nvm exec 0.10 npm --version | tail -1)" = "$NPM_VERSION_TEN" ] || die "`nvm exec` failed to run with the correct version"
14
15
+[ "$(nvm exec 0.10 bash -c "printf '$TEST_STRING'" | tail -1)" = "$TEST_STRING" ] || die "`nvm exec` failed to run with the command include white-spaces"
0 commit comments