From nobody@FreeBSD.org  Fri Jan  5 18:34:51 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 8CA9916A412
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 Jan 2007 18:34:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 7D1C513C458
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 Jan 2007 18:34:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l05IYpSO060337
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 5 Jan 2007 18:34:51 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l05IYpWX060336;
	Fri, 5 Jan 2007 18:34:51 GMT
	(envelope-from nobody)
Message-Id: <200701051834.l05IYpWX060336@www.freebsd.org>
Date: Fri, 5 Jan 2007 18:34:51 GMT
From: Jan Schaumann<jschauma@netmeister.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: uniq(1) should mention max line length
X-Send-Pr-Version: www-3.0

>Number:         107578
>Category:       docs
>Synopsis:       [patch] uniq(1) should mention max line length
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    keramida
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 05 18:40:21 GMT 2007
>Closed-Date:    Sun May 13 11:50:52 GMT 2007
>Last-Modified:  Sun May 13 11:50:52 GMT 2007
>Originator:     Jan Schaumann
>Release:        n/a
>Organization:
>Environment:
n/a
>Description:
uniq(1) uses LINE_MAX + 1, but this is not mentioned anywhere in the man page, causing one to wonder why uniq is not working as expected on input with longer lines. 
>How-To-Repeat:
for i in `jot 4096`; do printf "a" >> file; done
echo >> file
for i in `jot 4096`; do printf "a" >> file; done
echo >> file
uniq file
man uniq
>Fix:
--- /tmp/uniq.1 Fri Jan  5 10:31:16 2007
+++ /tmp/uniq.1.old     Fri Jan  5 10:31:41 2007
@@ -153,9 +153,3 @@
 .Nm
 command appeared in
 .At v3 .
-.Sh BUGS
-The
-.Nm
-utilitiy limits lines to a maximum of LINE_MAX + 1 bytes in length
-(commonly 2048 + 1).
-It will not be able to filter out identical lines longer than that.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: keramida 
State-Changed-When: Mon Jan 15 23:26:03 UTC 2007 
State-Changed-Why:  
Nice catch.  I've committed a slightly shorter version of 
the text, inspired from nl(1) and other utilities. 


Responsible-Changed-From-To: freebsd-doc->keramida 
Responsible-Changed-By: keramida 
Responsible-Changed-When: Mon Jan 15 23:26:03 UTC 2007 
Responsible-Changed-Why:  
I'll handle the MFC for this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107578 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/107578: commit references a PR
Date: Mon, 15 Jan 2007 23:26:01 +0000 (UTC)

 keramida    2007-01-15 23:25:51 UTC
 
   FreeBSD src repository (doc committer)
 
   Modified files:
     usr.bin/uniq         uniq.1 
   Log:
   Document that uniq(1) limits input line length to LINE_MAX characters.
   
   PR:             docs/107578
   Submitted by:   Jan Schaumann, jschauma.at.netmeister.org
   MFC after:      3 days
   
   Revision  Changes    Path
   1.20      +4 -0      src/usr.bin/uniq/uniq.1
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: pav 
State-Changed-When: Sun May 13 11:48:00 UTC 2007 
State-Changed-Why:  
MFCed to RELENG_6 

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