Skip to content

Commit c18f75a

Browse files
committed
doc: restore spawn+shell list item with DEP0190 ref
Apply remaining review suggestions from aduh95: - Add spawn+shell back to the list with (not recommended, see DEP0190) - Fix DEP0190 link reference to use full anchor
1 parent 69edc5e commit c18f75a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/child_process.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ however, `.bat` and `.cmd` files are not executable on their own without a
120120
terminal, and therefore cannot be launched using [`child_process.execFile()`][].
121121
When running on Windows, `.bat` and `.cmd` files can be invoked by:
122122

123+
* using [`child_process.spawn()`][] with the `shell` option set (not recommended, see [DEP0190][]), or
123124
* using [`child_process.exec()`][], or
124125
* spawning `cmd.exe` and passing the `.bat` or `.cmd` file as an argument
125126
(which is what [`child_process.exec()`][] does internally).
@@ -2355,7 +2356,7 @@ Therefore, this feature requires opting in by setting the
23552356
or [`child_process.fork()`][].
23562357

23572358
[Advanced serialization]: #advanced-serialization
2358-
[DEP0190]: deprecations.md#DEP0190
2359+
[DEP0190]: deprecations.md#dep0190-passing-args-to-nodechild_process-execfilespawn-with-shell-option-true
23592360
[Default Windows shell]: #default-windows-shell
23602361
[HTML structured clone algorithm]: https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm
23612362
[Shell requirements]: #shell-requirements

0 commit comments

Comments
 (0)