$BASH_SUBSHELL
–
Nesting Level of Subshells
$BASH_SUBSHELL is the nesting level of subshell or subshell environments.
Links
Examples
- Print subshell nesting
1echo "$BASH_SUBSHELL $(echo -n "$BASH_SUBSHELL $(echo -n $BASH_SUBSHELL)")"
BashSupport Pro is a Bash IDE with support for $BASH_SUBSHELL – try it now!