From owner-freebsd-current@FreeBSD.ORG Tue Jan 25 17:51:52 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8937716A4CE for ; Tue, 25 Jan 2005 17:51:52 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1629343D2F for ; Tue, 25 Jan 2005 17:51:52 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by wproxy.gmail.com with SMTP id 58so430918wri for ; Tue, 25 Jan 2005 09:51:51 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=AFq4sW6JjOGCB3DfMUTG6+ocHS3i/O81N/S8WYM49ealygj6sPc78eYfbQ3Y/sGMt+DGFJFHXxKajYrfyyy5pn/rSVQb75xxPGdzYTlHp2KPWCeIAxXkZJAgXrn2tl56OfS3B97kSi0Xvj17Y5+UCqd/4Eca5nqfmWF5yBbRDig= Received: by 10.54.39.9 with SMTP id m9mr14684wrm; Tue, 25 Jan 2005 09:51:51 -0800 (PST) Received: by 10.54.29.48 with HTTP; Tue, 25 Jan 2005 09:51:51 -0800 (PST) Message-ID: <790a9fff05012509511b64e3ad@mail.gmail.com> Date: Tue, 25 Jan 2005 11:51:51 -0600 From: Scot Hetzel To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: uniq truncates lines > 2048 bytes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Scot Hetzel List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 17:51:52 -0000 I noticed that if a file has lines > 2048 bytes, uniq will truncate the line to LINE_MAX (2048 bytes). An easy way to test this is to do the following: cd /usr/ports/accessibility/gnomemag make fetch-list > test.list make fetch-list >> test.list uniq test.list > test2.list test2.list should be half the size of test.list, but it is 2048 bytes. I have come up with a patch to uniq that fixes this problem. http://www.freebsd.org/cgi/query-pr.cgi?pr=76578