Title: Conflict between `child_process` API guidance and DEP0190 · Issue #58735 · nodejs/node · GitHub
Open Graph Title: Conflict between `child_process` API guidance and DEP0190 · Issue #58735 · nodejs/node
X Title: Conflict between `child_process` API guidance and DEP0190 · Issue #58735 · nodejs/node
Description: Affected URL(s) https://nodejs.org/docs/latest-v24.x/api/child_process.html#spawning-bat-and-cmd-files-on-windows Description of the problem The suggestions here include using spawn with shell: true, however doing so is deprecated with D...
Open Graph Description: Affected URL(s) https://nodejs.org/docs/latest-v24.x/api/child_process.html#spawning-bat-and-cmd-files-on-windows Description of the problem The suggestions here include using spawn with shell: tru...
X Description: Affected URL(s) https://nodejs.org/docs/latest-v24.x/api/child_process.html#spawning-bat-and-cmd-files-on-windows Description of the problem The suggestions here include using spawn with shell: tru...
Opengraph URL: https://github.com/nodejs/node/issues/58735
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Conflict between `child_process` API guidance and DEP0190","articleBody":"### Affected URL(s)\n\nhttps://nodejs.org/docs/latest-v24.x/api/child_process.html#spawning-bat-and-cmd-files-on-windows\n\n### Description of the problem\n\nThe suggestions here include using `spawn` with `shell: true`, however doing so is deprecated with [DEP0190](https://nodejs.org/docs/latest-v24.x/api/deprecations.html#dep0190-passing-args-to-nodechild_process-execfilespawn-with-shell-option-true). This conflicting messaging is confusing and makes this difficult-to-use-safely API even more confusing to use for non-experts.\n\nI don't know what the right call is here. My guess is that DEP0190 was created to nudge people away from using `spawn` with `shell: true` by either using it safely or explicitly using the insecure `exec` command. Since the only alternative in the documentation is `exec` I'd suggest removing the suggestion to use `spawn` with `shell: true` entirely.","author":{"url":"https://github.com/ericcornelissen","@type":"Person","name":"ericcornelissen"},"datePublished":"2025-06-16T21:08:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/58735/node/issues/58735"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ff127c53-e62d-edab-4a98-7295ef56d0d1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D9F8:3CECE3:45FCC4:5D82B4:6A4C2FD8 |
| html-safe-nonce | e6ff347b2561b8078faf0e966b810c4cd615cea1e9334cf126d28056f161ae55 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUY4OjNDRUNFMzo0NUZDQzQ6NUQ4MkI0OjZBNEMyRkQ4IiwidmlzaXRvcl9pZCI6IjQ3NzE2MjkzNjEwNjgyNTcyNDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5fbf8fdc5bbc52508e4b0815da90af6c5a6869f8ff1fde8e20b87eaaa2adc1a9 |
| hovercard-subject-tag | issue:3151336168 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/58735/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7d5b0fa57c375a61259079386895bcb1e6a5bf4eb4419d1dd9e42521ce196c50/nodejs/node/issues/58735 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7d5b0fa57c375a61259079386895bcb1e6a5bf4eb4419d1dd9e42521ce196c50/nodejs/node/issues/58735 |
| og:image:alt | Affected URL(s) https://nodejs.org/docs/latest-v24.x/api/child_process.html#spawning-bat-and-cmd-files-on-windows Description of the problem The suggestions here include using spawn with shell: tru... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ericcornelissen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b6b16d04026f131a36d57e3b01d0f4d26a51800edf48bf5ed0256e0ac905511 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9ee13484b32cf23e15fde191da4c9aa47d41201c |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width