GNU bug report logs -
#71171
ls -U, -f: document the other half of the story too
Previous Next
Reported by: Dan Jacobson <jidanni <at> jidanni.org>
Date: Fri, 24 May 2024 12:02:01 UTC
Severity: normal
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 71171 in the body.
You can then email your comments to 71171 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#71171
; Package
coreutils
.
(Fri, 24 May 2024 12:02:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Dan Jacobson <jidanni <at> jidanni.org>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Fri, 24 May 2024 12:02:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Man ls says:
-U do not sort; list entries in directory order
Please make it say:
-U do not sort; list entries in the order they were given on
the command line, and files within directories using their
directories' order
And on (info "(coreutils) Sorting the output") please change:
‘-U’
‘--sort=none’
Do not sort; list the files in whatever order they are stored in
the directory. (Do not do any of the other unrelated things that
‘-f’ does.) This can be useful when listing large directories,
where sorting can take some time.
to instead say:
‘-U’
‘--sort=none’
Do not sort; list the files in the order they were given on the
command line, and files within directories in whatever order they
are stored in the directory. (Do not do any of the other unrelated
things that ‘-f’, above, does.) This can be useful when listing
large directories, where sorting can take some time.
Proof:
$ echo $PATH | tr -s : \\n
/home/jidanni/bin
/usr/local/sbin
/usr/local/bin
/usr/local/games
/usr/sbin
/usr/bin
/usr/games
/sbin
/bin
$ echo $PATH | tr -s : \\n | xargs ls -Uogd
drwxr-xr-x 1 632 05-24 05:47 /home/jidanni/bin
drwxr-xr-x 1 0 04-17 12:34 /usr/local/sbin
drwxr-xr-x 1 0 04-17 12:34 /usr/local/bin
drwxr-xr-x 1 0 04-17 12:34 /usr/local/games
drwxr-xr-x 1 6028 05-23 07:42 /usr/sbin
drwxr-xr-x 1 19542 05-23 20:01 /usr/bin
drwxr-xr-x 1 0 01-29 05:20 /usr/games
lrwxrwxrwx 1 8 04-17 12:34 /sbin -> usr/sbin
lrwxrwxrwx 1 7 04-17 12:34 /bin -> usr/bin
Above, -U thankfully allows me to keep the output in the order I gave it!
Wait,
man ls:
-f list all entries in directory order
Same problems all over again with -f documentation.
So please also update the man ls and Info ls "-f" discussions to include
the command line order, as I did above for -U. Thanks.
ls (GNU coreutils) 9.4
Reply sent
to
Paul Eggert <eggert <at> cs.ucla.edu>
:
You have taken responsibility.
(Fri, 24 May 2024 15:50:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Dan Jacobson <jidanni <at> jidanni.org>
:
bug acknowledged by developer.
(Fri, 24 May 2024 15:50:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 71171-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Thanks, I installed the attached. This doesn't exactly match your
suggestion (as ls --help shouldn't be that chatty) but should address
the issues you raised. Some of those issues had already been fixed in
the development branch.
[0001-ls-improve-sorting-doc.patch (text/x-patch, attachment)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 22 Jun 2024 11:24:13 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 56 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.