bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug or change?


From: Eric Blake
Subject: Re: Bug or change?
Date: Tue, 18 Sep 2007 06:32:07 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Fredrik Andreasson on 9/18/2007 1:43 AM:
> Hi, maybe this it a bug?

Not a bug, but a difference in POSIX compliance.

> address@hidden ~]$ sort --version
> sort (GNU coreutils) 5.97

Even this version is somewhat old - the latest stable version of coreutils
is 6.9.

> address@hidden ~]$ cat file|sort -nr +2
> sort: open failed: +2: No such file or directory

Reread the NEWS - as of 5.90, this change was deliberate, because of POSIX
requirements:

  A few usages still have behavior that depends on which POSIX standard is
  being conformed to, and portable applications should beware these
  problematic usages.  These include:

    Problematic       Standard-conforming replacement, depending on
       usage            whether you prefer the behavior of:
                      POSIX 1003.2-1992    POSIX 1003.1-2001
    sort +4           sort -k 5            sort ./+4

Furthermore, the info manual describes a way to override which version of
POSIX you want - 'info coreutils standard'.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG78VH84KuGfSFAYARAu0RAJ9mKf3Wu3kanEwdxlpBIjUEbJpungCaAn5v
2VXgrObfT61Qu5J+BKjnX1E=
=h9Nk
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]