Skip to content

Commit c21068b

Browse files
aduh95DanielVenable
andcommitted
doc: remove deprecated pattern in child_process.md
Co-authored-by: = <[email protected]> PR-URL: #57568 Refs: #57389 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent f36bee4 commit c21068b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/child_process.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ exec('my.bat', (err, stdout, stderr) => {
138138
});
139139

140140
// Script with spaces in the filename:
141-
const bat = spawn('"my script.cmd"', ['a', 'b'], { shell: true });
141+
const bat = spawn('"my script.cmd" a b', { shell: true });
142142
// or:
143143
exec('"my script.cmd" a b', (err, stdout, stderr) => {
144144
// ...
@@ -158,7 +158,7 @@ exec('my.bat', (err, stdout, stderr) => {
158158
});
159159

160160
// Script with spaces in the filename:
161-
const bat = spawn('"my script.cmd"', ['a', 'b'], { shell: true });
161+
const bat = spawn('"my script.cmd" a b', { shell: true });
162162
// or:
163163
exec('"my script.cmd" a b', (err, stdout, stderr) => {
164164
// ...

0 commit comments

Comments
 (0)