Why set -e Doesn’t Always Exit Your Bash Script (And How It Can Break Production)
1. Introduction Bash scripting is often seen as simple glue code — something you write quickly to automate tasks. But under that simplicity lies a set of behaviours that can quietly introduce bugs into production systems.One of the most misunderstood features in Bash is set -e. Many developers believe they understand it. Fewer actually do.Let’s…