From: Sergei Trofimovich Date: Tue, 18 Feb 2020 14:30:43 +0000 (+0000) Subject: portability.eclass: avoid lexicographic number comparison, bug #705250 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=1a05e3a4ad8c8948465e22509b356e191b90789a;p=gentoo.git portability.eclass: avoid lexicographic number comparison, bug #705250 Closes: https://bugs.gentoo.org/705250 Signed-off-by: Sergei Trofimovich --- diff --git a/eclass/portability.eclass b/eclass/portability.eclass index c56f03fb8763..1402c0420cb0 100644 --- a/eclass/portability.eclass +++ b/eclass/portability.eclass @@ -67,8 +67,8 @@ seq() { # Screw it, do the output ourselves while :; do - [[ $max < $min && $step > 0 ]] && break - [[ $min < $max && $step < 0 ]] && break + [[ $max -lt $min && $step -gt 0 ]] && break + [[ $min -lt $max && $step -gt 0 ]] && break echo $min : $(( min += step )) done