when I run this on windows:
var spawn = require('execspawn')
spawn(process.execPath + ' -v')
I get this on stderr:
'C:\Program' is not recognized as an internal or external command.
but if I wrap the execPath in quotes, like this:
spawn('"' + process.execPath + '" -v')
then it works.
In the interest of making portable code easier to write, is this something that execspawn should/could try and handle for me or is it outside of scope?
when I run this on windows:
I get this on stderr:
but if I wrap the execPath in quotes, like this:
then it works.
In the interest of making portable code easier to write, is this something that execspawn should/could try and handle for me or is it outside of scope?