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 Hameland= authored and RafaelGSS committed 2025-05-02 17:05:34 -03:00
1 parent 0635cc0312
commit d290d7f2bf
1 file changed
+2 -2
+2 -2
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) => {
// ...