HomeFreeBSD

ls: implement --group-directories-first for compatibility with GNU ls

Description

ls: implement --group-directories-first for compatibility with GNU ls

Also implement --group-directories which takes a parameter.
"first" is equivalent to --group-directories-first, "last" gives
reversed sorting.

Changes in sorting between elements of the same type (files,
directories) are not intended.

Differential Revision: https://reviews.freebsd.org/D48347

Details

Provenance
pstefAuthored on Mon, Jan 6, 9:26 PM
Differential Revision
D48347: ls: --group-directories=first/last
Parents
rG82fa7f83b53b: ls -lh: humanize the total
Branches
Unknown
Tags
Unknown