]> git.ipfire.org Git - thirdparty/coreutils.git/commit
ls: add support for explicit file name sorting
authorPádraig Brady <P@draigBrady.com>
Sun, 11 Aug 2024 19:34:08 +0000 (20:34 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 11 Aug 2024 19:40:15 +0000 (20:40 +0100)
commit84f820228708fbee53e2267e6d2ad805197df8be
treebf5a2eed770d3e63b91257823b8f95d580239a27
parent9e448e8a518a8cf3948017cf04493d1d04938ff9
ls: add support for explicit file name sorting

Support overriding previous sorting options
with an explicit --sort=name option.

* doc/coreutils.texi (ls invocation): Document the new option.
* src/ls.c (usage): Likewise.
(sort_args): Add the "name" entry, and sort to be consistent
with the ordering presented in --help.
* tests/ls/ls-time.sh: Add test cases.
* NEWS: Mention the new feature.
Suggested by: Tzvetelin Katchov
NEWS
doc/coreutils.texi
src/ls.c
tests/ls/ls-time.sh