You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a pipeline we get exit code only from the last command. How can we know if one of the previous commands failed? Here is the code to show the problem:
In a pipeline we get exit code only from the last command. How can we know if one of the previous commands failed? Here is the code to show the problem:
From the output we see that there is no trace of error in the second pipeline:
Can we have something like 'pipefail' option or 'PIPESTATUS' array in Bash?
The text was updated successfully, but these errors were encountered: