Skip to content

Commit 2d8423d

Browse files
ugultopudanielleadams
authored andcommitted
doc: clarify child_process.exec inherits cwd
PR-URL: #36809 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Pooja D P <[email protected]> Reviewed-By: Yash Ladha <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent c4ad50e commit 2d8423d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎doc/api/child_process.md‎

Lines changed: 1 addition & 1 deletion
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)