-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: child_process .stdio accepts a String type #9701
Conversation
Document that `execFileSync`, `execSync` and `spawnSync` also supports `stdio` as an Array. Fixes: nodejs#9636
@@ -626,7 +626,7 @@ added: v0.11.12 | |||
* `cwd` {String} Current working directory of the child process | |||
* `input` {String|Buffer} The value which will be passed as stdin to the spawned process | |||
- supplying this value will override `stdio[0]` | |||
* `stdio` {Array} Child's stdio configuration. | |||
* `stdio` {String|Array} Child's stdio configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default is pipe
here as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressing @thefourtheye's comment would be nice.
@thefourtheye thanks, I've addressed your comment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM … I guess we’ll just cherry-pick the 2nd commit onto master
after this?
@addaleax Ya, that will work. But not directly right? Commits have to go through the PR process. |
@thefourtheye Yeah, I was asking because the extra commit is going through a review process (this one). But since it doesn’t apply 100 % cleanly I guess another PR is fine, too. |
@addaleax the default is already documented on master. : ) |
Document that `execFileSync`, `execSync` and `spawnSync` also supports `stdio` as an Array. PR-URL: #9701 Fixes: #9636 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
landed in 0624e51...86440c2 |
Document that `execFileSync`, `execSync` and `spawnSync` also supports `stdio` as an Array. PR-URL: #9701 Fixes: #9636 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Checklist
Affected core subsystem(s)
doc
Description of change
Document that
execFileSync
,execSync
andspawnSync
also supportsstdio
as an Array for v4.x.Fixes: #9636
See master branch pull request here #9637