Browse Source

set: add -e example (#7090)

Managor 3 năm trước cách đây
mục cha
commit
f00f1ac7b6
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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`