From owner-freebsd-doc@FreeBSD.ORG Fri Jan 5 18:40:22 2007 Return-Path: X-Original-To: freebsd-doc@hub.freebsd.org Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C05AD16A416 for ; Fri, 5 Jan 2007 18:40:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 889E313C457 for ; Fri, 5 Jan 2007 18:40:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l05IeM06016656 for ; Fri, 5 Jan 2007 18:40:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l05IeMwM016655; Fri, 5 Jan 2007 18:40:22 GMT (envelope-from gnats) Resent-Date: Fri, 5 Jan 2007 18:40:22 GMT Resent-Message-Id: <200701051840.l05IeMwM016655@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jan Schaumann Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8CA9916A412 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: docs/107578: uniq(1) should mention max line length X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jan 2007 18:40:22 -0000 >Number: 107578 >Category: docs >Synopsis: uniq(1) should mention max line length >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 05 18:40:21 GMT 2007 >Closed-Date: >Last-Modified: >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: >Unformatted: