{"description":"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 status of a pipeline using $?, by default, it only returns the exi\u2026","blog_url":"https://en.bioerrorlog.work/","blog_title":"BioErrorLog Tech Blog","author_url":"https://blog.hatena.ne.jp/BioErrorLog/","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/B/BioErrorLog/20250913/20250913202709.png","published":"2025-09-13 20:15:46","title":"Getting Exit Status from Piped Process in Linux Shell","categories":["Linux"],"url":"https://en.bioerrorlog.work/entry/handle-pipe-exit-status","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fen.bioerrorlog.work%2Fentry%2Fhandle-pipe-exit-status\" title=\"Getting Exit Status from Piped Process in Linux Shell - BioErrorLog Tech Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","author_name":"BioErrorLog","type":"rich","width":"100%","version":"1.0","height":"190"}