From 5b3614ac912a9d7f66029e4ef54857deb55e715b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 28 Jun 2006 23:50:21 +0000 Subject: (sort invocation): 'sort +1 -2' is now supported even when conforming to POSIX 1003.1-2001, since this is a pure extension to POSIX. --- doc/coreutils.texi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/coreutils.texi b/doc/coreutils.texi index d8cc5b6a2..0b142c7ad 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -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 -- cgit v1.2.3-70-g09d2