(sort invocation): 'sort +1 -2' is now supported
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Jun 2006 23:50:21 +0000 (23:50 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Jun 2006 23:50:21 +0000 (23:50 +0000)
even when conforming to POSIX 1003.1-2001, since this is a pure
extension to POSIX.

doc/coreutils.texi

index d8cc5b6..0b142c7 100644 (file)
@@ -3681,11 +3681,13 @@ numbers of leading blanks in fields can cause confusing results.
 Keys can span multiple fields.
 
 @vindex _POSIX2_VERSION
+@vindex POSIXLY_CORRECT
 On older systems, @command{sort} supports an obsolete origin-zero
 syntax @samp{+@var{pos1} [-@var{pos2}]} for specifying sort keys.
 This obsolete behavior can be enabled or disabled with the
 @env{_POSIX2_VERSION} environment variable (@pxref{Standards
-conformance}).
+conformance}); it can also be enabled when @env{POSIXLY_CORRECT} is
+not set by using the obsolete syntax with @samp{-@var{pos2}} present.
 
 Scripts intended for use on standard hosts should avoid obsolete
 syntax and should use @option{-k} instead.  For example, avoid