You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
child_process,Windows: fix docs for spawn({shell}) #14156
This is one of many problems arising from setting weird environments for child processes.
Technically, the documentation is not entirely incorrect. Microsoft specifies that COMSPEC must always contain the path to cmd.exe, at least for the root environment, so as long as that is true, the documentation is correct. It is still worth changing this in the documentation as - sadly - it is not always true for child processes...
Activity
refack commentedon Jul 10, 2017
/cc @nodejs/platform-windows @nodejs/documentation
tniessen commentedon Jul 10, 2017
This is one of many problems arising from setting weird environments for child processes.
Technically, the documentation is not entirely incorrect. Microsoft specifies that
COMSPECmust always contain the path tocmd.exe, at least for the root environment, so as long as that is true, the documentation is correct. It is still worth changing this in the documentation as - sadly - it is not always true for child processes...cjihrig commentedon Jul 10, 2017
I think we should say that the value defaults to
COMSPEC, and if that is not set,cmd.exeis used.tniessen commentedon Jul 10, 2017
Ref #14157
doc: fixes default shell in child_process.md
doc: fixes default shell in child_process.md
doc: fixes default shell in child_process.md
doc: fixes default shell in child_process.md
doc: fixes default shell in child_process.md
doc: fixes default shell in child_process.md
doc: fixes default shell in child_process.md
doc: fixes default shell in child_process.md
doc: fixes default shell in child_process.md