-
-
Notifications
You must be signed in to change notification settings - Fork 34.1k
doc: Clarify path search in child_process spawn #41418
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,8 +36,10 @@ identical to the behavior of pipes in the shell. Use the `{ stdio: 'ignore' }` | |
| option if the output will not be consumed. | ||
|
|
||
| The command lookup is performed using the `options.env.PATH` environment | ||
| variable if it is in the `options` object. Otherwise, `process.env.PATH` is | ||
| used. | ||
| variable if `env` is in the `options` object. Otherwise, `process.env.PATH` is | ||
| used. If `options.env` is set, but without `PATH`, lookup on UNIX is performed | ||
| on a default search path search of `/usr/bin:/bin` (see execvpe/execvp), on Windows | ||
|
||
| the current processes environment variable `PATH` is used. | ||
|
|
||
| On Windows, environment variables are case-insensitive. Node.js | ||
| lexicographically sorts the `env` keys and uses the first one that | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.