From tim@robbins.dropbear.id.au  Fri Oct  4 22:02:33 2002
Return-Path: <tim@robbins.dropbear.id.au>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 126BA37B401
	for <FreeBSD-gnats-submit@FreeBSD.ORG>; Fri,  4 Oct 2002 22:02:33 -0700 (PDT)
Received: from smtp02.iprimus.net.au (smtp02.iprimus.net.au [210.50.76.70])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 24F3543E3B
	for <FreeBSD-gnats-submit@FreeBSD.ORG>; Fri,  4 Oct 2002 22:02:32 -0700 (PDT)
	(envelope-from tim@robbins.dropbear.id.au)
Received: from dilbert.robbins.dropbear.id.au ([210.50.219.198]) by smtp02.iprimus.net.au with Microsoft SMTPSVC(5.0.2195.4617);
	 Sat, 5 Oct 2002 15:02:28 +1000
Received: from dilbert.robbins.dropbear.id.au (fkkvnv2xoif5ynu8@localhost [127.0.0.1])
	by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6) with ESMTP id g9552Fqi015122;
	Sat, 5 Oct 2002 15:02:15 +1000 (EST)
	(envelope-from tim@dilbert.robbins.dropbear.id.au)
Received: (from tim@localhost)
	by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6/Submit) id g9552FeW015121;
	Sat, 5 Oct 2002 15:02:15 +1000 (EST)
	(envelope-from tim)
Message-Id: <20021005150215.A14992@dilbert.robbins.dropbear.id.au>
Date: Sat, 5 Oct 2002 15:02:15 +1000
From: Tim Robbins <tjr@FreeBSD.ORG>
To: Mikhail Teterin <mi+mx@aldan.algebra.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
In-Reply-To: <200210041758.06299.mi+mx@aldan.algebra.com>; from mi+mx@aldan.algebra.com on Fri, Oct 04, 2002 at 05:58:06PM -0400
Subject: Re: uniq prints last, not first of the identical lines [patch]
References: <200210041758.06299.mi+mx@aldan.algebra.com>

>Number:         43680
>Category:       bin
>Synopsis:       Re: uniq prints last, not first of the identical lines [patch]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 04 22:10:01 PDT 2002
>Closed-Date:    Mon Oct 14 16:20:51 PDT 2002
>Last-Modified:  Mon Oct 14 16:20:51 PDT 2002
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:

 On Fri, Oct 04, 2002 at 05:58:06PM -0400, Mikhail Teterin wrote:
 > Presently, uniq(1) prints the last instead of the first of the
 > sequence of identical lines. This does not make much difference
 > in many cases, but in something like
 > 
 >     tail -f [some log].log | uniq
 > 
 > it is awkward -- uniq will not output the line until it sees the
 > different one (or until the input is closed).
 > 
 > The included patch modifies uniq to output the first line,
 > whenever possible (it is not, for example, when the count is
 > requested).
 
 Sorry, I had forgotten about this. I was hesistant about doing it for
 some reason, but I don't remember why. I'll have another look and see
 if I can remember what it was.
 
 Tim

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: keramida 
State-Changed-When: Mon Oct 14 16:20:10 PDT 2002 
State-Changed-Why:  
Followup to bin/43675 misfiled as a new PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=43680 
>Unformatted:
