bug-gawk
[Top][All Lists]
Advanced

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

[bug-gawk] Execution counts in gawk/master


From: Hermann Peifer
Subject: [bug-gawk] Execution counts in gawk/master
Date: Mon, 09 Feb 2015 19:45:19 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0


Hi again,

I noted that the execution counts in gawk/master seem to be incomplete: the first count (to the left of the rule) is missing. The one that shows
how many times the rule's pattern was tested. See below.

Hermann


### gawk-4.1-stable from git ###

$ ./gawk -V | head -1
GNU Awk 4.1.1b, API: 1.1 (GNU MPFR 3.1.2-p10, GNU MP 6.0.0)
$
$ printf "\n\n" | ./gawk -p/dev/stdout 'NR==1'

        # gawk profile, created Mon Feb  9 19:28:27 2015

        # Rule(s)

     2  NR == 1 { # 1
     1          print $0
        }

### gawk master from git ###

$ ./gawk -V | head -1
GNU Awk 4.1.60, API: 1.1 (GNU MPFR 3.1.2-p10, GNU MP 6.0.0)
$
$ printf "\n\n" | ./gawk -p/dev/stdout 'NR==1'

        # gawk profile, created Mon Feb  9 19:34:18 2015

        # Rule(s)

NR == 1 { # 1
     1          print $0
        }



reply via email to

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