Date: Fri, 22 Jul 2005 10:25:38 -0600 (MDT) From: "Justin T. Gibbs" <gibbs@scsiguy.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: standards/83919: ls man page "sort by size" example out not POSIX compliant Message-ID: <200507221625.j6MGPchr064478@aslan.scsiguy.com> Resent-Message-ID: <200507221700.j6MH0Ts3078680@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507221625.j6MGPchr064478>