ls(1): Update all POSIX references and correct the STANDARDS section

- Update the POSIX references for non-standard ls(1) options
- Simplify the STANDARDS section by mention both supported POSIX versions

Reported by:	hrs
Reviewed by:	hrs, bcr
Approved by:	hrs, bcr
MFC after:	3 days
X-MFC-With:	r364449
Differential Revision:	https://reviews.freebsd.org/D26210
This commit is contained in:
Gordon Bergling 2020-08-31 18:47:56 +00:00
parent 596b98ba16
commit 12ccc0aa08
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365004

View file

@ -32,7 +32,7 @@
.\" @(#)ls.1 8.7 (Berkeley) 7/29/94 .\" @(#)ls.1 8.7 (Berkeley) 7/29/94
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd August 21, 2020 .Dd August 31, 2020
.Dt LS 1 .Dt LS 1
.Os .Os
.Sh NAME .Sh NAME
@ -197,7 +197,7 @@ This option is not defined in
Display each file's MAC label; see Display each file's MAC label; see
.Xr maclabel 7 . .Xr maclabel 7 .
This option is not defined in This option is not defined in
.St -p1003.1-2001 . .St -p1003.1-2008 .
.It Fl a .It Fl a
Include directory entries whose names begin with a Include directory entries whose names begin with a
dot dot
@ -209,7 +209,7 @@ but use
.Tn C .Tn C
escape codes whenever possible. escape codes whenever possible.
This option is not defined in This option is not defined in
.St -p1003.1-2001 . .St -p1003.1-2008 .
.It Fl c .It Fl c
Use time when file status was last changed for sorting or printing. Use time when file status was last changed for sorting or printing.
.It Fl -color Ns = Ns Ar when .It Fl -color Ns = Ns Ar when
@ -292,7 +292,7 @@ and
.Fl t .Fl t
options. options.
As allowed by As allowed by
.St -p1003.1-2001 , .St -p1003.1-2008 ,
this option has no effect on the this option has no effect on the
.Fl d , .Fl d ,
.Fl l , .Fl l ,
@ -308,7 +308,7 @@ where it was used to display the group name in the long
.Pq Fl l .Pq Fl l
format output. format output.
This option is incompatible with This option is incompatible with
.St -p1003.1-2001 . .St -p1003.1-2008 .
.It Fl h .It Fl h
When used with the When used with the
.Fl l .Fl l
@ -316,7 +316,7 @@ option, use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte
and Petabyte in order to reduce the number of digits to four or fewer and Petabyte in order to reduce the number of digits to four or fewer
using base 2 for sizes. using base 2 for sizes.
This option is not defined in This option is not defined in
.St -p1003.1-2001 . .St -p1003.1-2008 .
.It Fl i .It Fl i
For each file, print the file's file serial number (inode number). For each file, print the file's file serial number (inode number).
.It Fl k .It Fl k
@ -343,7 +343,7 @@ Include the file flags in a long
.Pq Fl l .Pq Fl l
output. output.
This option is incompatible with This option is incompatible with
.St -p1003.1-2001 . .St -p1003.1-2008 .
See See
.Xr chflags 1 .Xr chflags 1
for a list of file flags and their meanings. for a list of file flags and their meanings.
@ -895,13 +895,14 @@ and
the the
.Nm .Nm
utility conforms to utility conforms to
.St -p1003.1-2001
and
.St -p1003.1-2008 . .St -p1003.1-2008 .
The options The options
.Fl B , D , G , I , T , U , W , Z , b , h , w , y .Fl B , D , G , I , T , U , W , Z , b , h , w , y
and and
.Fl , .Fl ,
are compatible extensions not defined in are non-standard extensions.
.St -p1003.1-2008 .
.Pp .Pp
The ACL support is compatible with The ACL support is compatible with
.Tn IEEE .Tn IEEE