In terminals/gnome-terminal/src/tools.sh
gnomeVersion="$(expr "$(gnome-terminal --version)" : '.* \(.*[.].*[.].*\)$')" is too clever. gnome-terminal --version) outputs this
$ gnome-terminal --version
# GNOME Terminal 3.47.0 using VTE 0.70.1 +BIDI +GNUTLS +ICU +SYSTEMD
and so the expr is parsed into 0.70.1 +BIDI +GNUTLS +ICU +SYSTEMD. Then newGnome is set to false, and gnome2 scripts are called.