Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705272 - profiles/prefix/windows/winnt/profile.bashrc uses lexicographical compare
Summary: profiles/prefix/windows/winnt/profile.bashrc uses lexicographical compare
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Profiles (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 705240
  Show dependency tree
 
Reported: 2020-01-12 11:45 UTC by Sergei Trofimovich
Modified: 2020-04-19 15:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich 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(-)