$BASH_COMPAT
–
Shell Compatibility Level
$BASH_COMPAT
controls the shell’s compatibility level.
Links
Examples
- Declare compatibility with Bash 4.3
1 2
BASH_COMPAT=43 declare -a foo='(1 2)'
BashSupport Pro is a Bash IDE with support for $BASH_COMPAT – try it now!