$FUNCNEST
–
Maximum Function Nesting
$FUNCNEST
defines the maximum function nesting level if it has a value greater than 0
.
Links
Examples
- Disallow function nesting
1 2 3 4 5
a() { b; } b() { echo b; } FUNCNEST=1 # Breaks with an error when it calls b a
BashSupport Pro is a Bash IDE with support for $FUNCNEST – try it now!