bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fwd: Semicolon is not treated properly in awk 3.1.4]


From: Alex Potanin
Subject: [Fwd: Semicolon is not treated properly in awk 3.1.4]
Date: Mon, 13 Sep 2004 11:37:59 -0500
User-agent: Mozilla Thunderbird 0.5 (X11/20040306)

Hi James,

You are official Debian maintainer for gawk. There is a bug in Debian Testing gawk package (3.1.4) that treats semicolons incorrectly (see below). It *does not happen* in the gawk compiled from 3.1.4 source on their web site (sorry for bothering you guys). :-)

Cheers,
Alex.

-------- Original Message --------
Subject:        Semicolon is not treated properly in awk 3.1.4
Date:   Mon, 13 Sep 2004 11:29:17 -0500
From:   Alex Potanin <address@hidden>
To:     address@hidden, OVM Administrative List <address@hidden>



Hello,

The following happens on 3.1.3 (RH Linux):

zardoz 3 % awk '{ print substr($0, 0, length($0) - 6) } '
JavaMonitorImpl_2_fire_4983_code;
JavaMonitorImpl_2_fire_4983
JavaMonitorImpl_2_fire_4983_code\;
JavaMonitorImpl_2_fire_4983_

The following happens on 3.1.4 (Debian Linux):

address@hidden:~/Purdue/ [snip]$ awk '{ print substr($0, 0, length($0) - 6) } '
JavaMonitorImpl_2_fire_4983_code
JavaMonitorImpl_2_fire_49
JavaMonitorImpl_2_fire_4983_code\;
JavaMonitorImpl_2_fire_4983

The behavour in 3.1.4 is a bug, I beleive. :-)

Thanks,
Alex.

------------------------------------------------------------

Alex Potanin
PhD Student
SMCS, VUW

Office: +64 (4) 463 5302
Mobile: +64 (21) 737 654

http://www.mcs.vuw.ac.nz/~alex/
------------------------------------------------------------






reply via email to

[Prev in Thread] Current Thread [Next in Thread]