$BASH_SUBSHELL  –  Nesting Level of Subshells

$BASH_SUBSHELL is the nesting level of subshell or subshell environments.

Examples

Print subshell nesting
1
echo "$BASH_SUBSHELL $(echo -n "$BASH_SUBSHELL $(echo -n $BASH_SUBSHELL)")"
BashSupport Pro is a Bash IDE with support for $BASH_SUBSHELLtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal