-
We can use tee to capture real-time stdout or stderr and redirect it to a file But I wonder how can this command return a true exit code, because by default, the tee command will return status code equal to 0, even the first command return an error:
|
Beta Was this translation helpful? Give feedback.
Answered by
mcornella
Dec 16, 2023
Replies: 1 comment 2 replies
-
See |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
mcornella
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See
$pipestatus
: https://unix.stackexchange.com/a/14276.