On 19 April 2010 18:45, erik quanstrom <quans...@quanstro.net> wrote:
>> I don't get it.
>> As I said, awk in plan9 works ok in the mentioned respect.
>> I said that plan9port awk gets it wrong for some reason...
>>
>> R
>
> i just ran awk from sources. it produces the same
> output as you produced for p9p awk. if you say
> that p9p awk is wrong, then plan 9 awk is wrong
> too since it produces the same output.
>
> here's what you had:
>
> ;9 awk 'BEGIN {OFMT="%.0f"; print 17.23}'
> 17.23
> ;awk 'BEGIN {OFMT="%.0f"; print 17.23}'
> 17
>
> and here's what the awk as distributed on sources does
> minooka; /n/sources/plan9/386/bin/awk 'BEGIN {OFMT="%.0f"; print
> 17.23}'
> 17.23
>
> yet here's what the awk done with bwk's current sources does
> minooka; awk 'BEGIN {OFMT="%.0f"; print 17.23}'
> 17
>
> - erik
>
>
Then something strange must have happened recently...
Or something like that.
I had checked and now did it again, on my plan 9 computer, that I get 17.
R