On 2025-10-31 10:27:55 -0400, Michael Stone wrote: > On Fri, Oct 31, 2025 at 03:19:26PM +0100, Vincent Lefevre wrote: > > On 2025-10-31 14:25:05 +0100, Nicolas George wrote: > > > ls can sort the list differently; printf cannot. Zsh can at globbing, sh > > > cannot, bash I do not know. > > > > And zsh has a nice numeric sort, which ls (at least from coreutils) > > does not. > > ls -v, unless you're looking for something much more basic
This is unfortunately not a numeric sort, but a version sort, with very obscure and illogical rules. For instance: $ ls -1v a.c ab.1 ac ac.0 a.b.1 a.c.0 Most users would wonder why a.c is first while a.c.0 is last. Something certainly not what I want. -- Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

