From 2d8423da3c13a8f41c0990a8063a94e8a461cffd Mon Sep 17 00:00:00 2001 From: ugultopu Date: Tue, 5 Jan 2021 20:39:31 -0500 Subject: [PATCH] doc: clarify child_process.exec inherits cwd PR-URL: https://github.com/nodejs/node/pull/36809 Reviewed-By: Anna Henningsen Reviewed-By: Pooja D P Reviewed-By: Yash Ladha Reviewed-By: James M Snell --- doc/api/child_process.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 6b092a83018d3c..afd756db79ec77 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -154,7 +154,7 @@ changes: * `command` {string} The command to run, with space-separated arguments. * `options` {Object} * `cwd` {string} Current working directory of the child process. - **Default:** `null`. + **Default:** `process.cwd()`. * `env` {Object} Environment key-value pairs. **Default:** `process.env`. * `encoding` {string} **Default:** `'utf8'` * `shell` {string} Shell to execute the command with. See