-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Executing "cmd.exe" on Windows never exits #232
Comments
This hangs because childProcess.spawn('cmd.exe', ['anyFile.cmd']) Now I actually don't think we should add What do you think @GMartigny and @sindresorhus? |
Since |
On the other hand if a user wants to fire What do you think @sindresorhus? |
I don't think we should do this. What we could do is to throw an error about using the |
This sounds good. This makes me wonder:
|
I would prefer not bloating
Yes, but let's limit it to |
As someone struggling to run powershell because of these opinionated decisions on cmd.exe being required, please don't ever force how to run a shell on users. |
@sindresorhus I believe this issue can be closed. What do you think? |
On Windows,
cmd.exe
doesn't quit itself after running the required script. The/d /s /c
options should be added. When execa runcmd.exe
, it never exits and therefore never resolves the promise.Reproduction
Technical
node-cross-spawn
already add those options but only when onshell
mode or on non.exe
files.The text was updated successfully, but these errors were encountered: