Skip to content

Commit 47b06f6

Browse files
fansworld-claudiorvagg
fansworld-claudio
authored andcommitted
docs: add missing shell option to execSync
Adds the "shell" option from child_process.exec to child_process.execSync on the api docs. Fixes: #3387 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> PR-URL: #3440
1 parent bbbd81e commit 47b06f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/api/child_process.markdown

+4
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,10 @@ process has exited.
715715
- `stderr` by default will be output to the parent process' stderr unless
716716
`stdio` is specified
717717
* `env` {Object} Environment key-value pairs
718+
* `shell` {String} Shell to execute the command with
719+
(Default: '/bin/sh' on UNIX, 'cmd.exe' on Windows, The shell should
720+
understand the `-c` switch on UNIX or `/s /c` on Windows. On Windows,
721+
command line parsing should be compatible with `cmd.exe`.)
718722
* `uid` {Number} Sets the user identity of the process. (See setuid(2).)
719723
* `gid` {Number} Sets the group identity of the process. (See setgid(2).)
720724
* `timeout` {Number} In milliseconds the maximum amount of time the process is allowed to run. (Default: undefined)

0 commit comments

Comments
 (0)