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:
parent
afe3909483
commit
417eecf42f
@ -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) => {
|
||||
// ...
|
||||
|
Loading…
x
Reference in New Issue
Block a user