{"action":"created","issue":{"url":"https://api.github.com/repos/creationix/nvm/issues/1166","repository_url":"https://api.github.com/repos/creationix/nvm","labels_url":"https://api.github.com/repos/creationix/nvm/issues/1166/labels{/name}","comments_url":"https://api.github.com/repos/creationix/nvm/issues/1166/comments","events_url":"https://api.github.com/repos/creationix/nvm/issues/1166/events","html_url":"https://github.com/creationix/nvm/issues/1166","id":166885213,"number":1166,"title":"`nvm run` does not work with files whose names consist of digits","user":{"login":"dr15x86","id":3681764,"avatar_url":"https://avatars.githubusercontent.com/u/3681764?v=3","gravatar_id":"","url":"https://api.github.com/users/dr15x86","html_url":"https://github.com/dr15x86","followers_url":"https://api.github.com/users/dr15x86/followers","following_url":"https://api.github.com/users/dr15x86/following{/other_user}","gists_url":"https://api.github.com/users/dr15x86/gists{/gist_id}","starred_url":"https://api.github.com/users/dr15x86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dr15x86/subscriptions","organizations_url":"https://api.github.com/users/dr15x86/orgs","repos_url":"https://api.github.com/users/dr15x86/repos","events_url":"https://api.github.com/users/dr15x86/events{/privacy}","received_events_url":"https://api.github.com/users/dr15x86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-21T18:21:48Z","updated_at":"2016-07-21T22:56:52Z","closed_at":null,"body":"If file name consist only digits before point, `nvm run` doesn't work.\r\n\r\nHow test:\r\n\r\n```bash\r\nmkdir /tmp/nvm_run\r\ncd /tmp/nvm_run\r\necho 'console.log(\"hi\")' > 123.js\r\nnvm run 123.js\r\n```\r\n\r\nOutput:\r\n\r\n    N/A: version \"123.js\" is not yet installed.\r\n    \r\n    You need to run \"nvm install 123.js\" to install it before using it.\r\n\r\nThe following file names are also not work:\r\n\r\n- `123`\r\n- `1.2.3.js`\r\n- `1.2.3.4.5.6.js`\r\n- `1.2.3.js`\r\n- `v123.js`\r\n- `v1.23.js`\r\n- `v1.js`\r\n- `v1`\r\n\r\n`nvm debug`:\r\n```\r\nnvm --version: v0.31.3\r\n$SHELL: /bin/bash\r\n$HOME: /home/dima\r\n$NVM_DIR: '/tmp/nvm'\r\n$PREFIX: ''\r\n$NPM_CONFIG_PREFIX: ''\r\nnvm current: v6.3.0\r\nwhich node: $NVM_DIR/versions/node/v6.3.0/bin/node\r\nwhich iojs: \r\nwhich npm: $NVM_DIR/versions/node/v6.3.0/bin/npm\r\nnpm config get prefix: $NVM_DIR/versions/node/v6.3.0\r\nnpm root -g: $NVM_DIR/versions/node/v6.3.0/lib/node_modules\r\n```\r\n\r\nDebian GNU/Linux testing (stretch)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/creationix/nvm/issues/comments/234409057","html_url":"https://github.com/creationix/nvm/issues/1166#issuecomment-234409057","issue_url":"https://api.github.com/repos/creationix/nvm/issues/1166","id":234409057,"user":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T22:56:51Z","updated_at":"2016-07-21T22:56:51Z","body":"Thanks for filing! Presumably this also occurs with `nvm exec` when the binary name to be run has a version-ish name?"}}
{"actor":{"display_login":"ljharb"}}