node-cross-spawn
node-cross-spawn copied to clipboard
The command itself is not properly escaped
This shouldn't "work":
❯ node.exe
> crossSpawn = require('cross-spawn')
> crossSpawn('echo foo bar',[],{stdio:'inherit'})
foo bar
echo foo bar should be treated in its entirety as the name of the command. It's not being escaped.