emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#70418: closed (ls bug)


From: GNU bug Tracking System
Subject: bug#70418: closed (ls bug)
Date: Wed, 17 Apr 2024 21:45:01 +0000

Your message dated Wed, 17 Apr 2024 14:43:51 -0700
with message-id <33ed6d6d-7138-400d-ba60-885765aac0e5@cs.ucla.edu>
and subject line Re: bug#70418: ls bug
has caused the debbugs.gnu.org bug report #70418,
regarding ls bug
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
70418: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70418
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: ls bug Date: Tue, 16 Apr 2024 16:07:59 +0100 User-agent: Mozilla Thunderbird There appears to be a bug with 'ls' when using the '-f' and '-l' options, or at least an inconsistency with the man page. The man page says '-f' list entries in directory order and does not mention any incompatibilities with other options, however I find using it with the '-l' option gives different ouputs depending on the order of options. See the following script log for an example:


toby@toby-pc:/tmp$ mkdir test
toby@toby-pc:/tmp$ cd test
toby@toby-pc:/tmp/test$ touch c b a foo bar
toby@toby-pc:/tmp/test$ ls -lf
.  ..  c  b  a  foo  bar
toby@toby-pc:/tmp/test$ ls -fl
total 0
drwxr-xr-x  2 toby toby 140 Apr 16 15:50 .
drwxrwxrwt 18 root root 560 Apr 16 15:50 ..
-rw-r--r--  1 toby toby   0 Apr 16 15:50 c
-rw-r--r--  1 toby toby   0 Apr 16 15:50 b
-rw-r--r--  1 toby toby   0 Apr 16 15:50 a
-rw-r--r--  1 toby toby   0 Apr 16 15:50 foo
-rw-r--r--  1 toby toby   0 Apr 16 15:50 bar
toby@toby-pc:/tmp/test$ ls -l -f
.  ..  c  b  a  foo  bar
toby@toby-pc:/tmp/test$ ls -f -l
total 0
drwxr-xr-x  2 toby toby 140 Apr 16 15:50 .
drwxrwxrwt 18 root root 600 Apr 16 15:57 ..
-rw-r--r--  1 toby toby   0 Apr 16 15:50 c
-rw-r--r--  1 toby toby   0 Apr 16 15:50 b
-rw-r--r--  1 toby toby   0 Apr 16 15:50 a
-rw-r--r--  1 toby toby   0 Apr 16 15:50 foo
-rw-r--r--  1 toby toby   0 Apr 16 15:50 bar
toby@toby-pc:/tmp/test$ type ls
ls is /usr/bin/ls

toby@toby-pc:/tmp/test$ ls --version
ls (GNU coreutils) 9.4

Copyright (C) 2023 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.



Written by Richard M. Stallman and David MacKenzie.


Regards,

Toby




--- End Message ---
--- Begin Message --- Subject: Re: bug#70418: ls bug Date: Wed, 17 Apr 2024 14:43:51 -0700 User-agent: Mozilla Thunderbird
On 4/17/24 03:19, Pádraig Brady wrote:

Patch looks good, and conforms to POSIX.

Thanks for the review. I installed the patch and am closing this bug report.



--- End Message ---

reply via email to

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