Skip to content

Add ability or command to capture stderr #4396

@lukexor

Description

@lukexor

Related problem

Currently there is no way for nushell to handle or manipulate output on stderr. So, for example, this leads to having to resort to bash or zsh for capturing log output to a file or parsing it to a table in nushell.

Compare:

> bash -c 'echo "stdout"' | lines | wrap output

╭───┬────────╮
│ # │ output │
├───┼────────┤
│ 0 │ stdout │
╰───┴────────╯
> bash -c '>&2 echo "stderr"' | lines | wrap output
stderr

Describe the solution you'd like

Some language support (a setting or command) for allowing stderr in pipelines.

Describe alternatives you've considered

No response

Additional context and details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions