Commit a072411
doc: remove spawn with shell example from bat/cmd section
Remove the suggestion to use child_process.spawn() with the shell
option set for running .bat and .cmd files on Windows. Passing
arguments through spawn with shell: true is deprecated (DEP0190)
due to shell injection risks. Keep the exec() and direct cmd.exe
spawn alternatives.
Fixes: #58735
PR-URL: #62243
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>1 parent 5ed5474 commit a072411Copy full SHA for a072411
1 file changed
+5-12Lines changed: 5 additions & 12 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- doc/api
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+5-12Lines changed: 5 additions & 12 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
120 | 120 | |
121 | 121 | |
122 | 122 | |
123 | | - |
| 123 | + |
124 | 124 | |
125 | 125 | |
126 | | - |
| 126 | + |
127 | 127 | |
128 | 128 | |
129 | 129 | |
130 | 130 | |
131 | 131 | |
132 | 132 | |
133 | | - |
134 | | - |
135 | | - |
136 | | - |
137 | 133 | |
138 | 134 | |
139 | | - |
| 135 | + |
140 | 136 | |
141 | 137 | |
142 | 138 | |
| ||
146 | 142 | |
147 | 143 | |
148 | 144 | |
149 | | - |
150 | | - |
151 | | - |
152 | | - |
153 | 145 | |
154 | 146 | |
155 | | - |
| 147 | + |
156 | 148 | |
157 | 149 | |
158 | 150 | |
| ||
2364 | 2356 | |
2365 | 2357 | |
2366 | 2358 | |
| 2359 | + |
2367 | 2360 | |
2368 | 2361 | |
2369 | 2362 | |
|
0 commit comments