Re: bug in sort -n -k1.4,1.2

2009-06-12 Thread Pádraig Brady
Cliff Miller wrote: hi, i have a bug to report in coreutils-7.4. the problem occurs with empty fields under -n/-g, specifically in sub-field specifications where end start. according to the docs, If the start position in a sort field specifier falls after the end of the line or after

Re: bug in sort -n -k1.4,1.2

2009-06-12 Thread Pádraig Brady
Cliff Miller wrote: the non-trivial case here is when -b is present in the form sort -k2.1b,2.3 where the start and end positions could be in either order depending on the number of blanks that start field 2. Right, good point. I've added a test for that case also and pushed the

Re: bug in sort -n -k1.4,1.2

2009-06-12 Thread Cliff Miller
Cliff Miller wrote: hi, i have a bug to report in coreutils-7.4. the problem occurs with empty fields under -n/-g, specifically in sub-field specifications wher= e end start. according to the docs, If the start position in a sort field specifier falls after the end of the line

Re: bug in sort -n -k1.4,1.2

2009-06-11 Thread Pádraig Brady
Thanks for the analysis and patch! I'll take a look at this this evening as I've been looking at this area recently. cheers, Pádraig. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils

bug in sort -n -k1.4,1.2

2009-06-10 Thread Cliff Miller
hi, i have a bug to report in coreutils-7.4. the problem occurs with empty fields under -n/-g, specifically in sub-field specifications where end start. according to the docs, If the start position in a sort field specifier falls after the end of the line or after the end field, the field