Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The command itself is not properly escaped #150

Open
mnpenner opened this issue Feb 11, 2022 · 0 comments
Open

The command itself is not properly escaped #150

mnpenner opened this issue Feb 11, 2022 · 0 comments

Comments

@mnpenner
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant