uniq truncates lines > 2048 bytes

From: Scot Hetzel <swhetzel_at_gmail.com>
Date: Tue, 25 Jan 2005 11:51:51 -0600
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
Received on Tue Jan 25 2005 - 16:51:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:26 UTC