[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] 1.7's putnum drops data if too close to end of line?
From: |
Ralph Corderoy |
Subject: |
Re: [Nmh-workers] 1.7's putnum drops data if too close to end of line? |
Date: |
Wed, 06 Dec 2017 14:17:17 +0000 |
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