From: Rudolf Sykora <rudolf.sykora@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] plan9port awk problem
Date: Mon, 19 Apr 2010 18:50:42 +0200 [thread overview]
Message-ID: <j2ma560a5d01004190950y8bbe7a62w7b1884c23ee99892@mail.gmail.com> (raw)
In-Reply-To: <371d507561ee5d4bcd39f397d061aede@ladd.quanstro.net>
On 19 April 2010 18:45, erik quanstrom <quanstro@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
next prev parent reply other threads:[~2010-04-19 16:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-19 15:29 Rudolf Sykora
2010-04-19 16:31 ` erik quanstrom
2010-04-19 16:38 ` Rudolf Sykora
2010-04-19 16:45 ` erik quanstrom
2010-04-19 16:50 ` Rudolf Sykora [this message]
2010-04-19 16:53 ` Rudolf Sykora
2010-04-19 17:03 ` erik quanstrom
2010-04-19 17:19 ` Rudolf Sykora
2010-04-19 17:31 ` Vivien MOREAU
2010-04-19 17:37 ` erik quanstrom
2010-04-19 17:06 ` EBo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=j2ma560a5d01004190950y8bbe7a62w7b1884c23ee99892@mail.gmail.com \
--to=rudolf.sykora@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).