[coreutils] [PATCH] uniq: don't continue field processing after end of l
From:
Sami Kerola
Subject:
[coreutils] [PATCH] uniq: don't continue field processing after end of line
Date:
Mon, 17 Jan 2011 00:53:12 +0100
Hi,
I notice uniq -f 'insane_large_number' will make process to be busy
long time without good reason. Attached patch should fix this symptom.
I found the bug after friend of mine asked why uniq does not allow
specifying field separator, similar way sort -t. I could not answer
anything rational, so I look the code and tested how it works. That
inspired me to send bug fix, which is obvious thing to do. But how
about that -t, do you think this would be worth while addition to
uniq?
--
  Sami Kerola
  http://www.iki.fi/kerolasa/