pipefail

The bash option that makes a pipeline fail if any stage fails, instead of reporting only the last stage's status.

In more detail

Without it, grep missing file | cat succeeds because cat succeeded, so set -e never notices. With it, the pipeline returns the status of the rightmost failing stage.

Related terms

Taught in

References

Certification courses