-----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.

> [EMAIL PROTECTED] ~]$ sort --version
> sort (GNU coreutils) 5.97

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

> [EMAIL PROTECTED] ~]$ 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             [EMAIL PROTECTED]
-----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-----


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to