Skip to content

Fix using both stdin: 'inherit' and input options #1219

@ehmicky

Description

@ehmicky

See #1218.

When using any of the following options:

  • {input: 'foo', stdio: 'inherit'}
  • {input: 'foo', stdio: ['inherit', ...]}
  • {input: 'foo', stdin: 'inherit'}

Execa should silently uses the following instead: {input: 'foo', stdin: 'pipe', ...}.

Please note that if users need multiple inputs, they can still use the {stdin: ['inherit', {string: 'foo'}] option.

This is technically a breaking change, so should be in a major release.

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