I want to use a feature only present in newer versions of zsh:
[[ "$foo" =~ "regexp" ]]
where regexp is a regular expression.
Is it possible to do this check?
Something like:
if [[ $ZSH_VERSION > 4.3.9 ]]; then
....
fi
Except that >
won't work.
Ciao!