coreutils
[Top][All Lists]
Advanced

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

sort -V or ls -v sort strange behavior


From: Ice Ninja
Subject: sort -V or ls -v sort strange behavior
Date: Sat, 10 Apr 2021 22:13:04 -0400

Hi Dev,

I cannot explain why a hyphen - can change the sorting order.

$ sort -V <<<'2.yamlmode
2.1.yamlmode
2.1.yaml-mode
2.yaml-mode'
2.yamlmode
2.1.yamlmode
2.1.yaml-mode
2.yaml-mode

I assume the following result is expected.
2.yamlmode
2.1.yamlmode
2.yaml-mode
2.1.yaml-mode

Is it a bug or are there rules I am not aware of.

Thanks.
Aeron Wang


reply via email to

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