Pádraig Brady <[EMAIL PROTECTED]> wrote:
...
> Another thing I just noticed. I would expect the precision
> of all output in the following command to be to 2 decimal places not 1:
>
> $ seq 0.00 0.01 0.90 | grep "\.[0-9]$"
> 0.1
> 0.2
> 0.3
> 0.4
> 0.5
> 0.6
> 0.7
> 0.8
> 0.9

Well, at least with the very latest from coreutils and libc6-2.5-10
from Debian unstable, I get what you (and I) would expect:

    $ seq 0.00 0.01 0.90 | grep '\.[0-9]$'
    $

However, with ubuntu's 2.5-0ubuntu14, I do see the same offending behavior
you quote above.  Sounds like another good argument for switching to a
consistent printf implementation.  I'm expecting to switch to gnulib's
pretty soon, in any case.  If that doesn't help, then at least we'll
have a convenient mechanism to correct the behavior.


Reply via email to