shopt -s extglob was missing.