Skip to content

Output stdout and stderr to a file together #6658

Closed

Description

@SUPERCILEX

Question

I know you can use do -i {} | complete, but that completely separates the streams. I'd like them interleaved as if they were one like in bash.

Additional context and details

No response

Activity

  1. added
    deprecated:question
    on Oct 2, 2022
  2. fdncred commented on Oct 2, 2022

    @fdncred
    Contributor

    This isn't supported in nushell at this time.

  3. WindSoilder commented on Oct 11, 2022

    @WindSoilder
    Contributor

    In detail:
    I think it's hard to implement for now, because our external result sender always send out stderr first, then stdout.

    Whatever our program generate stderr message or stdout meesage first.

    One way to implement this is using two different threads, one sends out stderr, one sends out stdout, but it seems resource wasting..

  4. added this to the v0.71.0 milestone on Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    deprecated:question

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions