As written on current-users@, this breaks comm(1) for trivial use cases like: printf "a" > test1 printf "a\n" > test2 comm test1 test2
Joerg On Sat, Nov 28, 2009 at 03:56:38AM +0000, D'Arcy J.M. Cain wrote: > Module Name: src > Committed By: darcy > Date: Sat Nov 28 03:56:38 UTC 2009 > > Modified Files: > src/usr.bin/comm: comm.c > > Log Message: > Don't include newlines when comparing to prevent errors when lines have > characters that sort lower such as tabs. > > This is a temporary fix to allow pullups to existing, supported versions > of NetBSD. I will follow up with a version for current using the new > getline function. > > > To generate a diff of this commit: > cvs rdiff -u -r1.17 -r1.18 src/usr.bin/comm/comm.c > > Please note that diffs are not public domain; they are subject to the > copyright notices on the relevant files.