From: fansworld-claudio Date: Mon, 19 Oct 2015 19:10:18 +0000 (-0300) Subject: docs: add missing shell option to execSync X-Git-Tag: v4.2.2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9120a04981f7f1dff3fcd06a1b28fc811902c877;p=platform%2Fupstream%2Fnodejs.git 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 Reviewed-By: Colin Ihrig PR-URL: https://github.com/nodejs/node/pull/3440 --- diff --git a/doc/api/child_process.markdown b/doc/api/child_process.markdown index bddf90f..13997d6 100644 --- a/doc/api/child_process.markdown +++ b/doc/api/child_process.markdown @@ -716,6 +716,10 @@ process has exited. - `stderr` by default will be output to the parent process' stderr unless `stdio` is specified * `env` {Object} Environment key-value pairs + * `shell` {String} Shell to execute the command with + (Default: '/bin/sh' on UNIX, 'cmd.exe' on Windows, The shell should + understand the `-c` switch on UNIX or `/s /c` on Windows. On Windows, + command line parsing should be compatible with `cmd.exe`.) * `uid` {Number} Sets the user identity of the process. (See setuid(2).) * `gid` {Number} Sets the group identity of the process. (See setgid(2).) * `timeout` {Number} In milliseconds the maximum amount of time the process is allowed to run. (Default: undefined)