GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: clear up child_process command resolution · nodejs/node@11899f6

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • child_process.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/child_process.md‎

Copy file name to clipboardExpand all lines: doc/api/child_process.md
+8Lines changed: 8 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ process will block waiting for the pipe buffer to accept more data. This is
3333
identical to the behavior of pipes in the shell. Use the `{ stdio: 'ignore' }`
3434
option if the output will not be consumed.
3535

36+
The command lookup will be performed using `options.env.PATH` environment
37+
variable if passed in `options` object, otherwise `process.env.PATH` will be
38+
used. To account for the fact that Windows environment variables are
39+
case-insensitive Node.js will lexicographically sort all `env` keys and choose
40+
the first one case-insensitively matching `PATH` to perform command lookup.
41+
This may lead to issues on Windows when passing objects to `env` option that
42+
have multiple variants of `PATH` variable.
43+
3644
The [`child_process.spawn()`][] method spawns the child process asynchronously,
3745
without blocking the Node.js event loop. The [`child_process.spawnSync()`][]
3846
function provides equivalent functionality in a synchronous manner that blocks

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.