commit: 1a05e3a4ad8c8948465e22509b356e191b90789a Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Tue Feb 18 14:30:43 2020 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Tue Feb 18 14:31:45 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a05e3a4
portability.eclass: avoid lexicographic number comparison, bug #705250 Closes: https://bugs.gentoo.org/705250 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> eclass/portability.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/portability.eclass b/eclass/portability.eclass index c56f03fb876..1402c0420cb 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
