Bash Version Information

$BASH_VERSINFO is an array and contains items, which define the version of Bash.

Examples

Print all items :

1
echo "${BASH_VERSINFO[@]}"

Output: 5 1 4 1 release x86_64-pc-linux-gnu

BashSupport Pro is a Bash IDE with support for $BASH_VERSINFO – try it now!
© 2020–2022 Joachim Ansorg
Imprint
Privacy Policy
Legal