On Sat, Sep 21, 2002 at 08:21:15PM -0700, walt wrote:

> walt wrote:
> 
> > My guess is that the syntax of 'sort' has changed since lorder
> > was modified in March of 2001(?)
> 
> David Wolfskill just pointed out to me that the behavior of 'sort'
> is completely different in -STABLE, which I've just confirmed.
> 
> Does anyone else see this behavior in -CURRENT?  What happens
> if you type 'sort +1' on your -CURRENT machine?

The +POS1 -POS2 syntax for specifying sort keys was (from memory) marked
as obsolescent in IEEE Std. 1003.2-1992 and removed (and disallowed) in
1003.1-2001. Many applications (like lorder) use the old syntax, so by default
GNU sort does not conform to the 2001 standard and accepts the old syntax.
If you set _POSIX2_VERSION=200112 in the environment before running GNU sort,
it will try to conform to the newer standard and treat "+pos" as a filename
instead of a sort key. The version of sort in -stable was written before
the 2001 standard and doesn't disable the obsolescent sort key syntax.

So the only explanation that I can think of is that you've got _POSIX2_VERSION
set in the environment:
$ _POSIX2_VERSION=200112 sort +1
sort: open failed: +1: No such file or directory

lorder should probably get changed to use the new syntax some time too.


Tim

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to