Difference between revisions of "Set -e"

From wikieduonline
Jump to navigation Jump to search
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
  
  [[set]] -e or set -o errexit
+
  [[set]] -e or [[set -o]] errexit
  
 
  -e  Exit immediately if a command exits with a [[non-zero status]].
 
  -e  Exit immediately if a command exits with a [[non-zero status]].
  
 
  set -eo [[pipefail]]
 
  set -eo [[pipefail]]
 +
[[set -eu]]
 +
[[set -euo pipefail]]
 +
[[set -euox pipefail]]
 +
[[set -Eeuxo pipefail]]
  
 
== Related ==
 
== Related ==
Line 14: Line 18:
 
* [[usage]]
 
* [[usage]]
 
* [[SET SESSION AUTHORIZATION]]
 
* [[SET SESSION AUTHORIZATION]]
 +
* <code>[[set +b]]</code>
 +
* <code>[[set +e]]</code>
 +
* <code>[[set -E]]</code>
 +
* <code>[[set -eu]]</code>
 +
* [[bash -e]]
 +
* [[continue-on-error:]]
  
 
== See also ==
 
== See also ==

Latest revision as of 09:27, 3 February 2023

Advertising: