node-cross-spawn icon indicating copy to clipboard operation
node-cross-spawn copied to clipboard

The command itself is not properly escaped

Open mnpenner opened this issue 3 years ago • 0 comments

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.

mnpenner avatar Feb 11 '22 03:02 mnpenner