bug-coreutils
[Top][All Lists]
Advanced

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

Re: sort -c --dont-poop-out-at-the-first-disorder


From: Jim Meyering
Subject: Re: sort -c --dont-poop-out-at-the-first-disorder
Date: Fri, 17 Nov 2006 12:35:19 +0100

Ralf Wildenhues <address@hidden> wrote:
> Dan Jacobson <jidanni <at> jidanni.org> writes:
>>
>>   $ sort -c timez1
>>   sort: timez1:418: disorder: 1162082133
>> is great at finding the first one, but to find the other two one has
>> to use ones brains. No fair.
>
> Isn't that already a contradiction to POSIX?  SUSv3 states that there should
> not be any output at all:
>
> | -c
> |     Check that the single input file is ordered as specified by
> |     the arguments and the collating sequence of the current locale.
> |     No output shall be produced; only the exit code shall be affected.

Hi Ralf,

You're right.  That use of "output" is ambiguous.
The POSIX sort spec is in the process of being adjusted, since that
wording never clearly described existing practice, and it wasn't intended
to make existing implementations nonconforming.




reply via email to

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