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

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

pgawk bug


From: Nielsen, Dan \(Corporate\)
Subject: pgawk bug
Date: Wed, 29 Jun 2005 21:22:51 -0400

Arnold,

First off. Thank you for all the time and energy you put into maintaining gawk. 
It is very much appreciated. And yes, I do support you indirectly by purchasing 
all of your O'Reilly books. They might not be the latest editions but they are 
well worn.

Now, here is my problem. I am running the script shown below. Actually, it is 
part of something much larger but this highlights the area where the profiler 
is inaccurate. The program executes properly but the profiler output in 
awkprof.out is missing an exclamation character following the "if" test.

environment: gawk/pgawk version 3.1.4 under Microsoft Windows 2000

source:

# ZERROR4.AWK - PGAWK 3.1.4 profile error
# How to run:
#   PGAWK -f C:\AWK\ZERROR4.AWK
#   TYPE AWKPROF.OUT
BEGIN {
a = 0
if (!(a == 0)) {} # awkprof.out lacks the "!"
if ( (a == 0)) {}
}

awkprof.out:

        # gawk profile, created Wed Jun 29 19:43:19 2005

        # BEGIN block(s)

        BEGIN {
     1          a = 0
     1          if ((a == 0)) {
                }
     1          if (a == 0) { # 1
                }
        }





reply via email to

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