Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: fixes default shell in child_process.md
Clarifies that the default shell in Windows is process.env.ComSpec
and that cmd.exe is only used as a fallback. Functions whose
descriptions are affected include:
child_process.spawn, child_process.exec,
child_process.spawnSync, and child_process.execSync.

Fixes: #14156
  • Loading branch information
henryzxu committed Jul 12, 2017
commit e9089d30566ecff4a98f235de80dd8328c03f806
8 changes: 4 additions & 4 deletions doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ changes:
* `shell` {boolean|string} If `true`, runs `command` inside of a shell. Uses
`'/bin/sh'` on UNIX, and `'process.env.ComSpec'` on Windows. If
`'process.env.ComSpec'` is unavailable, uses `'cmd.exe'` on Windows instead.
A different shell can be specified as a string. The shell should understand
the `-c` switch on UNIX, or `/d /s /c` on Windows. Defaults to `false` (no shell).
A different shell can be specified as a string. The shell should understand the
`-c` switch on UNIX, or `/d /s /c` on Windows. Defaults to `false` (no shell).
* Returns: {ChildProcess}

The `child_process.spawn()` method spawns a new process using the given
Expand Down Expand Up @@ -780,8 +780,8 @@ changes:
* `shell` {boolean|string} If `true`, runs `command` inside of a shell. Uses
`'/bin/sh'` on UNIX, and `'process.env.ComSpec'` on Windows. If
`'process.env.ComSpec'` is unavailable, uses `'cmd.exe'` on Windows instead.
A different shell can be specified as a string. The shell should understand
the `-c` switch on UNIX, or `/d /s /c` on Windows. Defaults to `false` (no shell).
A different shell can be specified as a string. The shell should understand the
`-c` switch on UNIX, or `/d /s /c` on Windows. Defaults to `false` (no shell).
* Returns: {Object}
* `pid` {number} Pid of the child process
* `output` {Array} Array of results from stdio output
Expand Down