看板 FB_doc 關於我們 聯絡資訊
>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: _______________________________________________ freebsd-doc@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-doc To unsubscribe, send any mail to "freebsd-doc-unsubscribe@freebsd.org"