bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SEQ BUG


From: Jim Meyering
Subject: Re: SEQ BUG
Date: Thu, 07 Jun 2007 23:48:28 +0200

Pádraig Brady <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]