Bug 107578

Summary: [patch] uniq(1) should mention max line length
Product: Documentation Reporter: jschauma
Component: Books & ArticlesAssignee: Giorgos Keramidas <keramida>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description jschauma 2007-01-05 18:40:21 UTC
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
Comment 1 dfilter service freebsd_committer freebsd_triage 2007-01-15 23:26:01 UTC
keramida    2007-01-15 23:25:51 UTC

  FreeBSD src repository (doc committer)

  Modified files:
    usr.bin/uniq         uniq.1 
  Log:
  Document that uniq(1) limits input line length to LINE_MAX characters.
  
  PR:             docs/107578
  Submitted by:   Jan Schaumann, jschauma.at.netmeister.org
  MFC after:      3 days
  
  Revision  Changes    Path
  1.20      +4 -0      src/usr.bin/uniq/uniq.1
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 2 Giorgos Keramidas freebsd_committer freebsd_triage 2007-01-15 23:26:03 UTC
State Changed
From-To: open->patched

Nice catch.  I've committed a slightly shorter version of 
the text, inspired from nl(1) and other utilities. 


Comment 3 Giorgos Keramidas freebsd_committer freebsd_triage 2007-01-15 23:26:03 UTC
Responsible Changed
From-To: freebsd-doc->keramida

I'll handle the MFC for this.
Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2007-05-13 12:48:00 UTC
State Changed
From-To: patched->closed

MFCed to RELENG_6