From d290d7f2bf81e5d6145aa182701d50e928ad250f Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 21 Mar 2025 09:26:10 +0100 Subject: [PATCH] doc: remove deprecated pattern in `child_process.md` Co-authored-by: = PR-URL: https://github.com/nodejs/node/pull/57568 Refs: https://github.com/nodejs/node/pull/57389 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Yagiz Nizipli --- doc/api/child_process.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 0a9c0e3e326..54c591e9854 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -138,7 +138,7 @@ exec('my.bat', (err, stdout, stderr) => { }); // Script with spaces in the filename: -const bat = spawn('"my script.cmd"', ['a', 'b'], { shell: true }); +const bat = spawn('"my script.cmd" a b', { shell: true }); // or: exec('"my script.cmd" a b', (err, stdout, stderr) => { // ... @@ -158,7 +158,7 @@ exec('my.bat', (err, stdout, stderr) => { }); // Script with spaces in the filename: -const bat = spawn('"my script.cmd"', ['a', 'b'], { shell: true }); +const bat = spawn('"my script.cmd" a b', { shell: true }); // or: exec('"my script.cmd" a b', (err, stdout, stderr) => { // ...