1
Fork 0

Clarify stdin behavior of Command::output.

Fixes #44929.
This commit is contained in:
Corey Farwell 2017-11-22 20:47:31 -05:00
parent b55d290956
commit 2178e3a1b9

View file

@ -712,8 +712,10 @@ impl Command {
/// Executes the command as a child process, waiting for it to finish and
/// collecting all of its output.
///
/// By default, stdin, stdout and stderr are captured (and used to
/// provide the resulting output).
/// By default, stdout and stderr are captured (and used to provide the
/// resulting output). Stdin is not inherited from the parent and any
/// attempt by the child process to read from the stdin stream will result
/// in the stream immediately closing.
///
/// # Examples
///