On Fri, 17 Jun 2022 at 19:45, Bernhard Reutner-Fischer wrote: > > On 13 June 2022 17:26:59 CEST, Jonathan Wakely via Fortran > <fort...@gcc.gnu.org> wrote: > > >https://gist.github.com/jwakely/95b3a790157f55d75e18f577e12b50d7#file-build_gcc_versions-sh > > s/[[/[/ > s/==/=/ > > The former are deprecated or obsolescent notations of test(1) syntax, fwiw.
The former are defined by bash. If I made your change, [ $ver = ?.?.? ] would never be true, because ?.?.? is not a GCC version. With Bash [[ $ver == ?.?.? ]] doesn't do word splitting etc. and matches the RHS as a glob patttern, which is exactly what I want it to do.