From: Junio C Hamano Date: Sun, 13 Mar 2022 02:20:59 GMT Subject: Re: [PATCH] test-lib.sh: use awk instead of expr for a POSIX non integer check Message-ID: In-Reply-To: <220312.86o82bfo7x.gmgdl@evledraar.gmail.com> Ævar Arnfjörð Bjarmason writes: > But probably better is to just amend that to call it as "test-tool libc > is-glibc-2.34-or-newer" or whatever. Then just do: > > if (__GLIBC__ > 2 || (__GLIBC__ == 2 && 34 >= __GLIBC_MINOR__)) > return 0; > return 1; Yuck. Then we'd have yet another libc-is-glibc-2.36-or-newer option, too, in the future?