Subject: Re: [PATCH] test-lib.sh: use awk instead of expr for a POSIX non integer check

From: Junio C Hamano <[email-masked]>
Date: Sat, 12 Mar 2022 18:20:59 -0800

Ævar Arnfjörð Bjarmason <[email-masked]> 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?