/
home
/
techb158
/
.nvm
/
test
/
slow
/
nvm exec
/
/home/techb158/.nvm/test/slow/nvm exec
mkdir
upload
Name
Size
Mode
Actions
Preamble works and respects 'silent' flag
1267
0775
edit
dl
rm
Running 'nvm exec' should pick up .nvmrc version
506
0775
edit
dl
rm
Running 'nvm exec' with help should not parse
206
0664
edit
dl
rm
Running 'nvm exec --lts' should work
549
0775
edit
dl
rm
Running 'nvm exec 0.x' should work
500
0775
edit
dl
rm
setup_dir
137
0775
edit
dl
rm
teardown_dir
175
0775
edit
dl
rm
Edit:
/home/techb158/.nvm/test/slow/nvm exec/Running 'nvm exec 0.x' should work
(500B)
#!/bin/sh die () { echo "$@" ; exit 1; } \. ../../../nvm.sh nvm use 0.10 NPM_VERSION_TEN="$(npm --version)" TEST_STRING="foo bar" nvm use 1.0.0 && [ "$(node --version)" = "v1.0.0" ] || 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" [ "$(nvm exec 0.10 bash -c "printf '$TEST_STRING'" | tail -1)" = "$TEST_STRING" ] || die "\`nvm exec\` failed to run with a command including whitespace"
Save
cmd:
run