|
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 "fileextensions" in GNU Coreutils version sort. https://www.gnu.org/software/coreutils/manual/coreutils.html#Special-handling-of-file-extensionsThat 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.
[Prev in Thread] | Current Thread | [Next in Thread] |