From 497530f43f265d9d30a3de37c797453f59c51fc8 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 --- 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 0f022eb9482710..db7149eafab137 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