Which programming language is this?
if [[ $version =~ ^([0-9]+)\.([0-9]+) ]]; then
major=${BASH_REMATCH[1]}
(( major >= 2 )) && echo "supported"
fi
Answer: Bash
POSIX sh has no
Play Programming Languages ▸
[[ ... =~ ... ]] regex test, BASH_REMATCH array or (( )) arithmetic command; those are Bash-only.