You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sets configuration for the child process’s standard input (stdin) handle.
Defaults to inherit when used with spawn or status, and defaults to piped when used with output.
N.b., that this documentation is essentially copy/pasted between stdin, stdout, and stderr, with references to stdin above replaced appropriately; I think this is a bug in that stdin's docs were merely copy/pasted from stdout/stderr without enough thought; in particular, let's look at the second paragraph.
In the second paragraph: assume we call output, which captures the output of the process: why should such a call presume piped as a default for stdin? (It would make sense for stderr and stdout. But stdin?)
… this seems to suggest that stdin is not piped merely by calling Command::output.
I think the behavior is fine, but the docs seem to not relay the correct behavior. This paragraph should probably just be truncated to "Defaults to inherit." for stdin only.
The text was updated successfully, but these errors were encountered:
The code for `output` indicates that only sets `stdout` and `stderr`,
yet the docs for `stdin` indicated that it too would be set. This seems
like it was just a simple copy/paste typo, so correct `stdin` to note
that it just defaults to `inherit`.
Fixes#6577.
Version
1.37.0
Platform
N/A / the documentation
Description
The documentation for
Command::stdin
reads,N.b., that this documentation is essentially copy/pasted between
stdin
,stdout
, andstderr
, with references tostdin
above replaced appropriately; I think this is a bug in thatstdin
's docs were merely copy/pasted fromstdout
/stderr
without enough thought; in particular, let's look at the second paragraph.In the second paragraph: assume we call
output
, which captures the output of the process: why should such a call presumepiped
as a default forstdin
? (It would make sense forstderr
andstdout
. Butstdin
?)If we look at the source for
output
:… this seems to suggest that
stdin
is not piped merely by callingCommand::output
.I think the behavior is fine, but the docs seem to not relay the correct behavior. This paragraph should probably just be truncated to "Defaults to
inherit
." forstdin
only.The text was updated successfully, but these errors were encountered: