From 1a05e3a4ad8c8948465e22509b356e191b90789a Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 18 Feb 2020 14:30:43 +0000 Subject: [PATCH] portability.eclass: avoid lexicographic number comparison, bug #705250 Closes: https://bugs.gentoo.org/705250 Signed-off-by: Sergei Trofimovich --- eclass/portability.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2