9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] plan9port awk problem
Date: Mon, 19 Apr 2010 12:45:34 -0400	[thread overview]
Message-ID: <371d507561ee5d4bcd39f397d061aede@ladd.quanstro.net> (raw)
In-Reply-To: <v2ia560a5d01004190938jb4e241dclf138fb3bf1dfe0a@mail.gmail.com>

> 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



  reply	other threads:[~2010-04-19 16:45 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 [this message]
2010-04-19 16:50       ` Rudolf Sykora
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=371d507561ee5d4bcd39f397d061aede@ladd.quanstro.net \
    --to=quanstro@quanstro.net \
    --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).