[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug-Report
From: |
Jürgen Kahrs |
Subject: |
Re: Bug-Report |
Date: |
Sun, 24 Sep 2006 12:29:19 +0200 |
User-agent: |
Thunderbird 1.5.0.5 (X11/20060725) |
DsangWonFan wrote:
> But unfortunately, if we execute a command like this "gawk '{if($0 ~
> /[1-9]/){print $0;}}' temp" ,
> the result is:
>
> 1234
> 4567
> acpi
>
> In fact, the "acpi" shall not be printed!
I tried to reproduce your problem with the gawk 3.1.5
that comes with SuSE Linux 10.1.
cat temp
1234
4567
acpi
gawk '{if($0 ~/[1-9]/){print $0;}}' temp
1234
4567
locale
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=
So the problem does not occur with my gawk 3.1.5.
You should either use gawk 3.1.5 or check if your
locale causes the problem.