Skip to content

Commit 47ab7c7

Browse files
fansworld-claudiojasnell
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 3d1f57d commit 47ab7c7

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
@@ -716,6 +716,10 @@ process has exited.
716716
- `stderr` by default will be output to the parent process' stderr unless
717717
`stdio` is specified
718718
* `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`.)
719723
* `uid` {Number} Sets the user identity of the process. (See setuid(2).)
720724
* `gid` {Number} Sets the group identity of the process. (See setgid(2).)
721725
* `timeout` {Number} In milliseconds the maximum amount of time the process is allowed to run. (Default: undefined)

0 commit comments

Comments
 (0)