-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Permit combining stdout/stderr as streams to external command behind pipe #9673
Copy link
Copy link
Closed
Labels
A:redirection-pipeAll related to redirection to files or more complex pipelines with STDERRAll related to redirection to files or more complex pipelines with STDERRA:streamingIssues related to streaming data (or collecting data when it should be streamed)Issues related to streaming data (or collecting data when it should be streamed)category:enhancementNew feature or requestNew feature or request
Milestone
Description
Question
Given command foo, which outputs both stdout and stderr, how can I pipe both of stdout and stderr from foo into bar through a pipe?
Ref these (non-exhaustive list of) alternatives which achieve this in bash:
foo |& bar
foo 2>&1 | barAdditional context and details
The only way for me to automate checking of my flake.nix checks (in a nice graphical output) in Nushell when using nom now is this arcane invocation:
bash -c 'nix flake check --log-format internal-json -vv |& nom --json'Feels weird that I cannot do the equivalent of "combine outputs and redirect them through pipe" in Nushell =S
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A:redirection-pipeAll related to redirection to files or more complex pipelines with STDERRAll related to redirection to files or more complex pipelines with STDERRA:streamingIssues related to streaming data (or collecting data when it should be streamed)Issues related to streaming data (or collecting data when it should be streamed)category:enhancementNew feature or requestNew feature or request