standards/83919: ls man page "sort by size" example out not POSIX
compliant
Justin T. Gibbs
gibbs at scsiguy.com
Fri Jul 22 17:55:18 GMT 2005
>Number: 83919
>Category: standards
>Synopsis: ls man page "sort by size" example out not POSIX compliant
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-standards
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: doc-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Jul 22 17:00:28 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Justin T. Gibbs
>Release: FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD aslan.scsiguy.com 5.4-STABLE FreeBSD 5.4-STABLE #7: Sat May 21 21:03:20 MDT 2005 gibbs at aslan.scsiguy.com:/usr/src/sys/i386/compile/ASLAN i386
>Description:
The ls man page contains the following example:
ls -l | sort -n +4
The +POS [-POS] origin-zero syntax to specify sort keys is not
allowed per POSIX 1003.1-2001. The sort man page doesn't even
mention this syntax any longer. (Our sort does still honor the
syntax.)
A more correct example would be:
ls -l | sort -n -k 5
>How-To-Repeat:
man ls
>Fix:
Convert the above corrected example into mdoc, replacing the
current example.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-standards
mailing list