tech-userlevel archive

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

ls.1: incorrect -O flag description



The -O (not a POSIX one) flag seems incorrectly described in the manual
page.

What it does (from a cursory look at the sources, matching the result
of testing), is simply not displaying a supplementary information
about the directory traversed when going recursive.

It does not output only leaf (filenames not directory). This is only
the "headline": "\ndir:\n" that is not displayed.

Just try:

$ ls -OF

for example (and combine with -R).

What was the intention of the flag? To have an output with just the
names (including directories) without the formatting about the newline
and the dir?
-- 
        Thierry Laronde <tlaronde +AT+ kergis +dot+ com>
                     http://www.kergis.com/
                    http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C


Home | Main Index | Thread Index | Old Index