GNU bug report logs - #70418
ls bug

Previous Next

Package: coreutils;

Reported by: Toby Kelsey <toby.kelsey <at> gmail.com>

Date: Tue, 16 Apr 2024 15:09:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Toby Kelsey <toby.kelsey <at> gmail.com>
To: Chris Elvidge <celvidge001 <at> gmail.com>, 70418 <at> debbugs.gnu.org
Subject: bug#70418: ls bug
Date: Tue, 16 Apr 2024 22:30:04 +0100
The man page doesn't explain this format conflict, while the info page (info '(coreutils) ls invocation' or 'info ls') 
claims '-f' implies '-1' which is also incorrect: 'ls -1f' gives different output to to 'ls -f'.

I am using coreutils 9.4-3 in Manjaro and the online documentation for 9.5 
<https://www.gnu.org/software/coreutils/manual/html_node/Sorting-the-output.html> seems to to be only document 
consistent with actual 9.4 behavior ('-f'  implies '-aU' and disables '-l'), Technically then these are errors in the 
man and info pages, but I think it is misleading to have what is described as a 'sort option'  determining output 
format. If the option was described correctly in the man and info documents installed with the software that would be 
some improvement. Hopefully 9.5 fixes these bugs.

Toby

On 16/04/2024 16:53, Chris Elvidge wrote:
>
>
> On 16/04/2024 at 16:07, Toby Kelsey wrote:
>> 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:
>>
>>
> It really says -f = do not sort, enable -aU. -U = do not sort
>
> It also says -f = disable -ls --color
>
> So -l -f = -f takes precedence, -f -l = -l takes precedence.
>





This bug report was last modified 1 year and 31 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.