Entries from 2025-09-13 to 1 day

Getting Exit Status from Piped Process in Linux Shell

This post summarizes how to get the exit status from commands in a pipeline. Introduction How to Get Exit Statuses from a Pipeline Using PIPESTATUS Using set -o pipefail Conclusion References Introduction When you try to get the exit statu…