[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#35939: version sort is incorrect with hyphen-minus
From: |
Vincent Lefevre |
Subject: |
bug#35939: version sort is incorrect with hyphen-minus |
Date: |
Wed, 26 Jun 2019 23:25:44 +0200 |
User-agent: |
Mutt/1.12.1+33 (6a74e24e) vl-117499 (2019-06-23) |
On 2019-06-26 12:57:14 -0700, Paul Eggert wrote:
> GNU sort uses the same algorithm as glibc strverscmp, and this algorithm has
> changed only once since strverscmp was added to glibc in 1997. The change
> was made in 2009, to fix this bug:
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=9913
Except that this bug report is wrong. But I've checked that
both "ls -v" and "sort -V" give the expected ordering on the
given example in this bug report:
zira% ls -1v
B007502280067.gbp.corp.com
B007502357019.GBP.CORP.COM
B0075022800016.gbp.corp.com
zira% printf "%s\n" * | sort -V
B007502280067.gbp.corp.com
B007502357019.GBP.CORP.COM
B0075022800016.gbp.corp.com
--
Vincent Lefèvre <address@hidden> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
- bug#35939: version sort is incorrect with hyphen-minus, Assaf Gordon, 2019/06/26
- bug#35939: version sort is incorrect with hyphen-minus, Paul Eggert, 2019/06/26
- bug#35939: version sort is incorrect with hyphen-minus,
Vincent Lefevre <=
- bug#35939: version sort is incorrect with hyphen-minus, Assaf Gordon, 2019/06/26
- bug#35939: version sort is incorrect with hyphen-minus, Ian Jackson, 2019/06/26
- bug#35939: version sort is incorrect with hyphen-minus, Ian Jackson, 2019/06/26
- bug#35939: version sort is incorrect with hyphen-minus, Paul Eggert, 2019/06/26
- bug#35939: version sort is incorrect with hyphen-minus, Vincent Lefevre, 2019/06/27
- bug#35939: version sort is incorrect with hyphen-minus, Ian Jackson, 2019/06/27
- bug#35939: version sort is incorrect with hyphen-minus, Florian Weimer, 2019/06/28
bug#35939: version sort is incorrect with hyphen-minus, Ian Jackson, 2019/06/26
bug#35939: version sort is incorrect with hyphen-minus, Vincent Lefevre, 2019/06/26