Sfoglia il codice sorgente

set: add -e example (#7090)

Managor 3 anni fa
parent
commit
f00f1ac7b6
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      pages/common/set.md

+ 4 - 0
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`