Date: Fri, 5 Jan 2007 18:34:51 GMT From: Jan Schaumann<jschauma@netmeister.org> To: freebsd-gnats-submit@FreeBSD.org Subject: docs/107578: uniq(1) should mention max line length Message-ID: <200701051834.l05IYpWX060336@www.freebsd.org> Resent-Message-ID: <200701051840.l05IeMwM016655@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701051834.l05IYpWX060336>