nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] 1.7's putnum drops data if too close to end of line?

2017-12-06 08:17:37
Hi David,

%(kilo) and %(kibi) can produce partial output

Yes.

    $ for w in {1..8}; do
    > fmttest -raw -forma '%(void(compval{text}))%(kibi{num})|' \
    >     -outsize $w 123456
    > done
    1
    12
    120
    120.
    120.6
    120.6K
    120.6Ki
    120.6Ki|
    $

And faulty it looks.  When would `1' ever be suitable output for
123,456 B?  And it doesn't do the question mark that nmh does elsewhere
to indicate missing digits, e.g. `?0.6Ki'.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

-- 
Nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>