Re: [PATCH] test-lib.sh: use awk instead of expr for a POSIX non integer check
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 13, 2022, 02:20 UTC
- Message-ID
- <xmqqtuc2lhis.fsf@gitster.g>
- In-Reply-To
- <220312.86o82bfo7x.gmgdl@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 6 quoted lines
> 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?