GeezerVison is showing github.com — docs: add missing shell option to execSync · nodejs/node@9120a04
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/child_process.markdown +4Lines changed: 4 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -716,6 +716,10 @@ process has exited. |
716 | 716 | - `stderr` by default will be output to the parent process' stderr unless |
717 | 717 | `stdio` is specified |
718 | 718 | * `env` {Object} Environment key-value pairs |
| 719 | + * `shell` {String} Shell to execute the command with |
| 720 | + (Default: '/bin/sh' on UNIX, 'cmd.exe' on Windows, The shell should |
| 721 | + understand the `-c` switch on UNIX or `/s /c` on Windows. On Windows, |
| 722 | + command line parsing should be compatible with `cmd.exe`.) |
719 | 723 | * `uid` {Number} Sets the user identity of the process. (See setuid(2).) |
720 | 724 | * `gid` {Number} Sets the group identity of the process. (See setgid(2).) |
721 | 725 | * `timeout` {Number} In milliseconds the maximum amount of time the process is allowed to run. (Default: undefined) |
|