On Mon, Nov 10, 2008 at 02:33:19PM +0100, Natanael Copa wrote:
>heh you were seconds faster to post than me

:P

>On Mon, 2008-11-10 at 14:22 +0100, Bernhard Reutner-Fischer wrote:
>>         while ((increment > 0 && i <= last) || (increment < 0 && i >=
>> last)) {
>> -               printf("%g\n", i);
>> +               if (is_consecutive++) {
>> +                       printf("%s", sep);
>> +               }
>> +               printf("%0*g", width, i);
>>                 i += increment;
>>         }
>
>i'd rather:
>
>
>        while ((increment > 0 && i <= last) || (increment < 0 && i >= last)) {
>                if (i >= last)
>                        sep = "\n";

coreutils prints a final '\n', yes.
But this sounds a bit like it wouldn't work equally well for 
10 -1 8
versus
8 +1 10
would it?
We would have to duplicate the stop condition which wouldn't be nice.
Can you look into this, please?

>                printf("%0*g%s", opt, i, sep);
>                i += increment;
>        }
>
>
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to