-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add ability or command to capture stderr #4396
Copy link
Copy link
Closed
Labels
category:enhancementNew feature or requestNew feature or request
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
category:enhancementNew feature or requestNew feature or request