From f00f1ac7b681a3867eb5dd6aa4b5e216e584e5bd Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sun, 7 Nov 2021 23:04:05 +0200 Subject: [PATCH] set: add -e example (#7090) --- pages/common/set.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/set.md b/pages/common/set.md index 7246dbf393..8d76f95bb4 100644 --- a/pages/common/set.md +++ b/pages/common/set.md @@ -17,3 +17,7 @@ - Set various options, e.g. enable `vi` style line editing: `set -o {{vi}}` + +- Set the shell to exit as soon as the first error is encountered (mostly used in scripts): + +`set -e`