- Version: *
- Platform: Windows
- Subsystem: child_process
https://github.com/nodejs/node/blob/master/lib/child_process.js#L444 has a fallback to use cmd.exe in case process.env.ComSpec is falsy.
This is redundant, fragile, and generally covers-up an invalid state (%ComSpec% should always be defined and point to a valid shell executable).
This code path should be deprecated according to the guide at https://github.com/nodejs/node/blob/master/COLLABORATOR_GUIDE.md#deprecations
and https://github.com/nodejs/node/blob/master/doc/api/deprecations.md
Ref: #14149 (comment)