@Tino well, you could do a
$SHELL --version
, but again SHELL might be overwritten (and all shell do not support the --version flag).