issue #17: fix space in username on windows#263
Conversation
Avoiding this error:
```sh
$ npm test
> shelljs@0.5.3 test c:\Users\Arve Seljebu\Documents\GitHub\shelljs
> node scripts/run-tests
module.js:340
throw err;
^
Error: Cannot find module 'c:\Users\Arve'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:289:25)
at Function.Module.runMain (module.js:457:10)
at startup (node.js:138:18)
at node.js:974:3
shell.js: internal error
Error: Command failed: "c:\Program Files\nodejs\node.exe" c:\Users\Arve Seljebu\AppData\Local\Temp\shelljs_94059e280f6ce03ce67b
at checkExecSyncError (child_process.js:464:13)
at Object.execSync (child_process.js:504:13)
at execSync (c:\Users\Arve Seljebu\Documents\GitHub\shelljs\src\exec.js:81:11)
at _exec (c:\Users\Arve Seljebu\Documents\GitHub\shelljs\src\exec.js:214:12)
at c:\Users\Arve Seljebu\Documents\GitHub\shelljs\src\common.js:182:23
at Object.<anonymous> (c:\Users\Arve Seljebu\Documents\GitHub\shelljs\scripts\run-tests.js:19:5)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
npm ERR! Test failed. See above for more details.
```
|
@arve0 Do you have steps I could take to reproduce this (without changing my username)? |
|
Mock Edit: added link to |
|
Linking to #17 (so that the link is clickable and I don't forget later on) |
|
Is there a reason why this was not merged? |
|
Some more information. This PR itself is not enough to fix all the test failures, but it is a step in the right direction. The test file needs to be changed as well, and even then the test at coffeescript will fail. After the switch to rechoir (#258), the last issue will fix itself. |
|
I just forgot to review. I'll try to test it out tonight. Sorry about that! |
|
@arve0 @TimothyGu Finally got around to reviewing (sorry for the delay!). It looks mostly good (thanks for tracking down this bug!), but I have two issues:
I've done #365 as an example of what I mean. If you want to fix this to have the security provisions #365 has, then I have no issue with taking this PR. Or we can just merge mine, unless there are issues. Either way is fine. |
|
Just get the unit- and battle-tested ship off shore. |
|
👍 will do |
Avoiding this error: