# Bash version info:
for n in 0 1 2 3 4 5
do
  echo "BASH_VERSINFO[$n] = ${BASH_VERSINFO[$n]}"
done

#BASH_VERSINFO[0]	#Major version no.
#BASH_VERSINFO[1]	#Minor version no.
#BASH_VERSINFO[2]	#Patch level.
#BASH_VERSINFO[3]	#Build version.
#BASH_VERSINFO[4]	#Release status.
#BASH_VERSINFO[5]	#Architecture
Published in: Bash
Download

Related snippets