|
From: | Serge Bohdjalian |
Subject: | GAWK 3.1.1 numeric typing bugs |
Date: | Wed, 08 Jan 2003 09:23:04 -0500 |
Would you mind if I forwarded it to bug-gawk (alias bug-gnu-utils)
discussion list so that it gets archived, and people can find it via
web searching engines?
You can also forward your previous mail, so that the thread is complete.
What do you think?
Unfortunately, you tripped over a bug here (in fact, double bug).
The two bugs hiding each other, in combination with the fact that you
was not aware that assigning a field is completely different from
getting it from input file have to confuse you.
I hope it's clearer now.
A final note: in "normal" awk program you don't enter into this.
The source could probably contain not only 00EF but also 0089 which
would be interpreted as (decimal) number. So the usual way is to
ensure that the value is string, like this:
a = $2 ""
[Prev in Thread] | Current Thread | [Next in Thread] |