Skip to content

Confusing docs: Command::output claims to "capture" stdin #44929

Closed
@crumblingstatue

Description

@crumblingstatue

By default, stdin, stdout and stderr are captured (and used to provide the resulting output).

"capture" makes it sound like the data is stored somewhere for later inspection. There is no stdin field in process::Output.

I did some looking into the implementation, and to me it seems that the child's stdin is simply closed before waiting. @talchas on IRC told me that it's made to be Stdio::null().

In any case, this should be clarified.

cc @steveklabnik

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.P-mediumMedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions