Skip to content

Undocumented behavior when input: 'string' is mixed with stdio: 'inherit' #1218

@jedwards1211

Description

@jedwards1211

I'm not sure how to make a repro because I've only encountered this issue with SSH. If I ssh bash piping in a script with input: '<bash script>' and I have stdio: 'inherit', the command never exits after running the script. But if I change to stdio: ['pipe', 'inherit', 'inherit'] it does exit normally.

In retrospect it makes sense that mixing input with stdio: 'inherit' might not work, but this was fairly confusing, and I don't see any documentation of what's supposed to happen in this case. Would it be better to error out, or automatically force stdin to be 'pipe' when input is given? Or is there some kind of legitimate use case for mixing input with stdio: 'inherit'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions