Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: clarify path search in
child_process.spawn
The documentation about command lookup could be more clear and note differences between Windows and Linux/OSX. Current text gives the impression that if one passes `options.env` without `PATH`, the path search will fall back on `process.env.PATH`. In reality, passing environment without `PATH` to `execvp` causes it to look for the binary only in `/usr/bin:/bin`. Also Windows behaves different and more in line with the current documentation text. PR-URL: nodejs#41418 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]>
- Loading branch information