cut: fix handling of overlapping ranges
commitb54b47f954c9b97bdb2dbbf51ead908ccb3a4f13
authorCojocaru Alexandru <xojoc@gmx.com>
Tue, 7 May 2013 12:01:46 +0000 (7 13:01 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 7 May 2013 12:07:02 +0000 (7 13:07 +0100)
tree1c2f45856aef15025b1a8ba5383207f975260aab
parent7fbe8f46867aa7539799d981c28bdbd28d3a7dd0
cut: fix handling of overlapping ranges

This issue was introduced in commit v8.21-43-g3e466ad

* src/cut.c (set_fields): Process all range pairs when merging.
* tests/misc/cut-huge-range.sh: Add a test for this edge case.
Also fix an issue where we could miss reported errors due
to truncation of the 'err' file.
src/cut.c
tests/misc/cut-huge-range.sh