doc: remove deprecated pattern in child_process.md

Co-authored-by: = <daniel.venable@proton.me>
PR-URL: https://github.com/nodejs/node/pull/57568
Refs: https://github.com/nodejs/node/pull/57389
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
Antoine du Hamel 2025-03-21 09:26:10 +01:00 committed by GitHub
parent afe3909483
commit 417eecf42f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) => {
// ...