freebsd-dev/bin/ls
Minsoo Choo 3bfbb521fe ls: Improve POSIX compatibility for -g and -n.
- Change -g (ignored for BSD 4.3 compatibility since BSD 4.4)
  to use POSIX semantics of implying -l but omitting the owner's
  name.

- Change -n to imply -l.

The -o option remains unchanged (POSIX defines -o as a complement to
-g that implies -l but omits group names whereas BSD defines -o to add
file flags to -l).  This compromise is the same used by both NetBSD
and OpenBSD.

PR:		70813
Reviewed by:	jhb, Pau Amma <pauamma@gundo.com>
Co-authored-by:	John Baldwin <jhb@FreeBSD.org>
Differential Revision:	https://reviews.freebsd.org/D34747
2023-07-18 10:03:09 -07:00
..
tests ls: Improve POSIX compatibility for -g and -n. 2023-07-18 10:03:09 -07:00
cmp.c ls(1): add a -v flag to sort naturally 2022-10-31 00:00:42 +01:00
extern.h ls(1): add a -v flag to sort naturally 2022-10-31 00:00:42 +01:00
ls.1 ls: Improve POSIX compatibility for -g and -n. 2023-07-18 10:03:09 -07:00
ls.c ls: Improve POSIX compatibility for -g and -n. 2023-07-18 10:03:09 -07:00
ls.h ls: Improve POSIX compatibility for -g and -n. 2023-07-18 10:03:09 -07:00
Makefile
Makefile.depend Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
Makefile.depend.options
print.c ls: Improve POSIX compatibility for -g and -n. 2023-07-18 10:03:09 -07:00
util.c ls(1): add a -v flag to sort naturally 2022-10-31 00:00:42 +01:00