coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: version-sort ugliness or bugs


From: Michael Stone
Subject: Re: version-sort ugliness or bugs
Date: Fri, 16 Apr 2021 13:52:05 -0400

On Fri, Apr 16, 2021 at 09:38:54AM -0700, Kaz Kylheku (Coreutils) wrote:
On 2021-04-15 18:44, Erik Auerswald wrote:
Hi,

On Thu, Apr 15, 2021 at 11:47:34PM +0200, Vincent Lefevre wrote:
I'm currently using version-sort in order to get integers sorted
in strings (due to the lack of simple numeric sort like in zsh),
but I've noticed some ugliness. This may be bugs, not I'm not sure
[ ... ]
I think all of your problems ("ugliness") is caused by the concept of "file
extensions" in GNU Coreutils version sort.

https://www.gnu.org/software/coreutils/manual/coreutils.html#Special-handling-of-file-extensions

That strikes me as a very poor set of requirements.

Welcome to real life. The requirements were based on trying to sort existing versioning schemes, not by defining what versioning scheme is acceptable. It's certainly a much easier problem if you change the scope.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]