Skip to content

Commit 6498e05

Browse files
ugultopujasnell
authored andcommitted
doc: clarify child_process.exec inherits cwd
PR-URL: #36809 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Pooja D P <Pooja.D.P@ibm.com> Reviewed-By: Yash Ladha <yash@yashladha.in> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent f5287a4 commit 6498e05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/child_process.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ changes:
154154
* `command` {string} The command to run, with space-separated arguments.
155155
* `options` {Object}
156156
* `cwd` {string} Current working directory of the child process.
157-
**Default:** `null`.
157+
**Default:** `process.cwd()`.
158158
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
159159
* `encoding` {string} **Default:** `'utf8'`
160160
* `shell` {string} Shell to execute the command with. See

0 commit comments

Comments
 (0)