Difference between revisions of "Set -E"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{lc}} If set, any trap on ERR is inherited by shell functions, command substitutions, and commands executed in a subshell environment. The ERR trap is normally not inherit...")
 
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
<code>set -E</code> if set, any [[trap]] on [[ERR]] is inherited by shell functions, command substitutions, and commands executed in a subshell environment. The ERR trap is normally not inherited in such cases.
  
 
+
== Related ==
If set, any trap on ERR is inherited by shell functions, command substitutions, and commands executed in a subshell environment. The ERR trap is normally not inherited in such cases.
+
* <code>[[set -e]]</code>
 +
* <code>[[trap]]</code>
  
 
== See also ==
 
== See also ==
 
* {{set}}
 
* {{set}}
 +
 +
[[Category:Bash]]

Latest revision as of 07:34, 7 February 2023

set -E if set, any trap on ERR is inherited by shell functions, command substitutions, and commands executed in a subshell environment. The ERR trap is normally not inherited in such cases.

Related[edit]

See also[edit]

Advertising: