Back to Developer Roadmap

set -e

src/data/roadmaps/shell-bash/content/set--e@I-N9SM8ZVcOTVQs8_vtJm.md

4.0917 B
Original Source

set -e

set -e is a shell command that instructs the shell to exit immediately if a command exits with a non-zero status. This is a way to ensure that your script stops executing as soon as an error occurs, preventing subsequent commands from running based on potentially incorrect or incomplete results. It's a common practice to include set -e at the beginning of a script to enforce stricter error checking.

Visit the following resources to learn more: