Add windowsVerbatimArguments docs for child_process.spawn#16299
Add windowsVerbatimArguments docs for child_process.spawn#16299andrewstucki wants to merge 1 commit intonodejs:masterfrom
Conversation
doc/api/child_process.md
Outdated
There was a problem hiding this comment.
nit: long line. need to wrap at <= 80 chars
doc/api/child_process.md
Outdated
There was a problem hiding this comment.
This is supported on other child process methods. There are some additional details that should probably be included. It is enabled unconditionally when the shell option is true on Windows. This means it's also turned on for exec() for example.
There was a problem hiding this comment.
So, just to make sure, you want me to both:
- Add the doc to the methods that call
spawnunder the hood (execfamily as well asforkfrom the looks of it) - Mention that it is automatically set when
shellis set totrue
There was a problem hiding this comment.
- Add the doc to the methods that call spawn under the hood (exec family as well as fork from the looks of it)
Yes. I'm not a huge fan of it, but we repeat the options in this file a lot.
- Mention that it is automatically set when shell is set to true
Yes, but only on Windows. exec() and execSync() are a bit special because you can't disable shell, and thus cannot disable WVA.
There was a problem hiding this comment.
Ok, so I updated the docs for fork, spawn, and spawnSync since the exec family always enables shell (fork always disables shell, but windowsVerbatimArguments is still able to be overwritten).
Also added in that the default value for windowsVerbatimArguments is false.
doc/api/child_process.md
Outdated
There was a problem hiding this comment.
A nit: primitive types are lowercased, so this should be {boolean} here and in other additions,
…Sync, execFile, and fork
|
Any updates? |
|
AFAICT should be good to go with a green linter CI: https://ci.nodejs.org/job/node-test-linter/13043/ |
|
Filled in a wrong ref, new CI: https://ci.nodejs.org/job/node-test-linter/13045/ |
|
Just realized the linter does not verify the docs...anyway a full CI: https://ci.nodejs.org/job/node-test-pull-request/11048/ (should totally get the doc CI setup) |
|
So, it looks like the build for this was potentially manually aborted and that the checks that aren't "completed" won't because the build is aborted. Are there any changes for me to make or is this just waiting for the doc CI to work? |
|
@andrewstucki The windows job got cancelled probably because of the disk space issue that we had over the weekend. New CI: https://ci.nodejs.org/job/node-test-pull-request/11110/ |
|
@joyeecheung so this looks like it's green on the linter, but failing for a bunch of unrelated reasons on the platform-dependent builds. |
|
Landed in 41611f9, thanks! |
doc: Add windowsVerbatimArguments docs for child_process spawn, spawnSync, execFile, and fork PR-URL: #16299 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
doc: Add windowsVerbatimArguments docs for child_process spawn, spawnSync, execFile, and fork PR-URL: nodejs#16299 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
This does not land cleanly in v6.x LTS. Please feel free to manually backport by following the guide. Please also feel free to replace do-not-land if it is being backported |
doc: Add windowsVerbatimArguments docs for child_process spawn, spawnSync, execFile, and fork PR-URL: #16299 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This resurrects nodejs/node-v0.x-archive#4259.
I changed a bit of the documentation to more closely mirror the docs found in the header http://docs.libuv.org/en/v1.x/process.html by taking the wording from https://nikhilm.github.io/uvbook/processes.html
Checklist
Affected core subsystem(s)
doc