What is Pipefail in bash?

What is Pipefail in bash?
Answer
set -o pipefail this setting
prevents errors in a pipeline from being masked. If any command in a pipeline fails, that return code will be used as the return code of the whole pipeline. By default, the pipeline’s return code is that of the last command even if it succeeds.
 

Tìm kiếm

Back
Top