bug-coreutils
[Top][All Lists]
Advanced

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

bug#15828: behavior of ls -f


From: Aharon Robbins
Subject: bug#15828: behavior of ls -f
Date: Thu, 07 Nov 2013 20:54:32 +0200
User-agent: Heirloom mailx 12.5 6/20/10

Hello.

There is a difference between the Solaris ls and ls on GNU/Linux
and many other systems. In particular, ls -f turns off -l (and other
options, see below).

This breaks a test I have in the gawk test suite.

The citation from POSIX:

> > The readdir test fails because the -f option to ls turns off -l. I think
> > the Solaris ls is broken.
>
> This is perfectly POSIX-compliant behavior. See
>   http://pubs.opengroup.org/onlinepubs/000095399/utilities/ls.html
>
> -f [XSI]  Force each argument to be interpreted as a directory and list the
>    name found in each slot. This option shall turn off -l, -t, -s, and -r, and
>    shall turn on -a; the order is the order in which entries appear in the 
> directory. 

And even if I set POSIXLY_CORRECT GNU/Linux ls doesn't turn off -l.

        $ ls --version
        ls (GNU coreutils) 8.13

I will probably rewrite my test (sigh).

In the meantime, comments?

Thanks,

Arnold





reply via email to

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