$ ./guess_the_languageProgramming Languages
Programming Languages · hard · #603

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 [[ ... =~ ... ]] regex test, BASH_REMATCH array or (( )) arithmetic command; those are Bash-only.
Play Programming Languages ▸