From 57e27a38249c7ce7ffc54a8e539ef3080a0c7c29 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 5a0f46596395c1..127a1bd5317ee6 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