$BASH_COMPAT  –  Shell Compatibility Level

$BASH_COMPAT controls the shell’s compatibility level.

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_COMPATtry it now!
© 2020–2026 Joachim Ansorg
Imprint
Privacy Policy
Legal