[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
posix sort bug
From: |
Tom Lord |
Subject: |
posix sort bug |
Date: |
Thu, 17 Jan 2002 11:34:24 -0800 (PST) |
In sort from GNU textutils 1.14, option processing seems to not work
quite right, though perhaps I'm misreading the Posix spec.
For example, I think that:
sort -r -t - -k 1 -k 2n
should have the same meaning as:
sort -t - -k 1,1r -k 2,2rn
but it does not seem to. (The latter invocation works as I would
expect, the former does not.) Enclosed is some sample input which
illustrates the problem:
-t
version-0
base-0
patch-1
patch-10
patch-11
patch-12
patch-13
patch-14
patch-15
patch-16
patch-17
patch-18
patch-19
patch-2
patch-20
patch-21
patch-22
patch-23
patch-24
patch-25
patch-26
patch-27
patch-28
patch-29
patch-3
patch-30
patch-31
patch-32
patch-33
patch-34
patch-35
patch-36
patch-37
patch-38
patch-39
patch-4
patch-40
patch-5
patch-6
patch-7
patch-8
patch-9
- posix sort bug,
Tom Lord <=