strings /usr/bin/ksh | grep -i version
echo ${.sh.version}
echo $KSH_VERSION
echo $BASH_VERSION
bash --version