Your message dated Fri, 23 Dec 2005 14:40:06 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Done
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at maintonly) by bugs.debian.org; 2 Feb 2005 07:17:50 +0000
>From [EMAIL PROTECTED] Tue Feb 01 23:17:50 2005
Return-path: <[EMAIL PROTECTED]>
Received: from mta5.algx.net (mta.algx.net) [67.92.168.234]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1CwElq-0008Fc-00; Tue, 01 Feb 2005 23:17:50 -0800
Received: from approximate.corpus.cam.ac.uk
(ip67-95-192-82.z192-95-67.customer.algx.net [67.95.192.82])
by chimmx04.algx.net
(iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003))
with ESMTP id <[EMAIL PROTECTED]> for
[EMAIL PROTECTED]; Wed, 02 Feb 2005 01:17:18 -0600 (CST)
Received: from sanjoy by approximate.corpus.cam.ac.uk with local (Exim 3.35 #1)
id 1Cw2cZ-00069a-00 for [EMAIL PROTECTED]; Tue,
01 Feb 2005 11:19:27 -0700
Date: Tue, 01 Feb 2005 11:19:27 -0700
From: Sanjoy Mahajan <[EMAIL PROTECTED]>
Subject: coreutils: sort -n -u may silently drops a line
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Message-id: <[EMAIL PROTECTED]>
Content-transfer-encoding: 7BIT
X-Debbugs-CC: Sanjoy Mahajan <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-10.3 required=4.0 tests=BAYES_00,DATE_IN_PAST_12_24,
HAS_PACKAGE,X_DEBBUGS_CC autolearn=ham
version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
Package: coreutils
Version: 5.2.1-2
Severity: minor
File: /usr/bin/sort
With 'input' being the following 2-line file:
fig
bit
The following sort command
$ sort -u -n < input
produces just one line of output:
fig
So the '-n' option makes sort consider 'fig' and 'bit' to be equal.
In the info manual for sort, this behavior is documented for the '-g'
switch:
Use the following collating sequence:
* Lines that do not start with numbers (all considered to be equal).
Perhaps the 'all considered to be equal' note should be added for
'-n'? Or perhaps sort should warn to stderr if it is comparing
non-numbers using -n?
-Sanjoy
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i586)
Kernel: Linux 2.4.27-200412041
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages coreutils depends on:
ii libacl1 2.2.23-1 Access control list shared library
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
-- no debconf information
---------------------------------------
Received: (at 293282-done) by bugs.debian.org; 23 Dec 2005 13:40:42 +0000
>From [EMAIL PROTECTED] Fri Dec 23 05:40:41 2005
Return-path: <[EMAIL PROTECTED]>
Received: from mailservice.tudelft.nl ([130.161.131.5])
by spohr.debian.org with esmtp (Exim 4.50)
id 1EpnA1-0006a6-P8
for [EMAIL PROTECTED]; Fri, 23 Dec 2005 05:40:41 -0800
Received: from localhost (localhost [127.0.0.1])
by rav.antivirus (Postfix) with ESMTP id 2188D2330B8
for <[EMAIL PROTECTED]>; Fri, 23 Dec 2005 14:40:11 +0100 (CET)
Received: from 82-171-132-56.dsl.ip.tiscali.nl (x084.decis.nl [130.161.177.84])
by mx2.tudelft.nl (Postfix) with ESMTP id 980922330AD
for <[EMAIL PROTECTED]>; Fri, 23 Dec 2005 14:40:10 +0100 (CET)
Received: from [127.0.0.1] (localhost [127.0.0.1])
by 82-171-132-56.dsl.ip.tiscali.nl (Postfix) with ESMTP id 168E1BFA67
for <[EMAIL PROTECTED]>; Fri, 23 Dec 2005 14:40:07 +0100 (CET)
Message-ID: <[EMAIL PROTECTED]>
Date: Fri, 23 Dec 2005 14:40:06 +0100
From: Thomas Hood <[EMAIL PROTECTED]>
User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Subject: Done
X-Enigmail-Version: 0.92.1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by amavisd-new at tudelft.nl
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-2.0 required=4.0 tests=BAYES_00,ONEWORD autolearn=no
version=2.60-bugs.debian.org_2005_01_02
5.93 contains the new text:
`-u'
`--unique'
Normally, output only the first of a sequence of lines that compare
equal. For the `--check' (`-c') option, check that no pair of
consecutive lines compares equal.
This option also disables the default last-resort comparison.
The commands `sort -u' and `sort | uniq' are equivalent, but this
equivalence does not extend to arbitrary `sort' options. For
example, `sort -n -u' inspects only the value of the initial
numeric string when checking for uniqueness, whereas `sort -n |
uniq' inspects the entire line. *Note uniq invocation::.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]