Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 705272

Summary: profiles/prefix/windows/winnt/profile.bashrc uses lexicographical compare
Product: Gentoo Linux Reporter: Sergei Trofimovich (RETIRED) <slyfox>
Component: ProfilesAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705240    

Description Sergei Trofimovich (RETIRED) gentoo-dev 2020-01-12 11:45:03 UTC
profiles/prefix/windows/winnt/profile.bashrc uses lexicographical string version compare:

profiles/prefix/windows/winnt/profile.bashrc:while [[ $# > 0 ]]
profiles/prefix/windows/winnt/profile.bashrc:	[[ ${#mysrcs[@]} < 2 ]] && exit 0

The intention is likely to use '-lt'/'-gt'. See bug #705240 for hints to fix it.
Comment 1 Larry the Git Cow gentoo-dev 2020-04-19 15:02:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7846712858fa0f77b912b55029330909fe983acc

commit 7846712858fa0f77b912b55029330909fe983acc
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-04-19 15:02:07 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-04-19 15:02:07 +0000

    profiles/prefix/windows/winnt/profile.bashrc: fix lexicographical number compare
    
    Closes: https://bugs.gentoo.org/705272
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 profiles/prefix/windows/winnt/profile.bashrc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)