bug-gawk
[Top][All Lists]
Advanced

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

[bug-gawk] Fwd: [Bug 820550] New: gawk: getline in BEGIN skips 2 lines


From: James Hogan
Subject: [bug-gawk] Fwd: [Bug 820550] New: gawk: getline in BEGIN skips 2 lines
Date: Thu, 10 May 2012 12:55:26 +0100

Hi,

I just reported this bug to redhat bugzilla.

I notice there's something similar on this list "getline difference
from gawk versions >=4.0.0" from 2nd april this year, but my one looks
a bit more clear cut wrong.

Cheers
James


---------- Forwarded message ----------
From:  <address@hidden>
Date: 10 May 2012 12:37
Subject: [Bug 820550] New: gawk: getline in BEGIN skips 2 lines
To: address@hidden


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: gawk: getline in BEGIN skips 2 lines

https://bugzilla.redhat.com/show_bug.cgi?id=820550

          Summary: gawk: getline in BEGIN skips 2 lines
          Product: Fedora
          Version: 16
         Platform: x86_64
       OS/Version: Linux
           Status: NEW
         Severity: high
         Priority: unspecified
        Component: gawk
       AssignedTo: address@hidden
       ReportedBy: address@hidden
        QAContact: address@hidden
               CC: address@hidden
   Classification: Fedora
     Story Points: ---
             Type: Bug
       Regression: ---
       Mount Type: ---
    Documentation: ---


Description of problem:

A getline in the BEGIN section seems to eat 2 lines instead of 1 from the point
of view of the main section. This works correctly on Centos 6 (GNU Awk 3.1.7).

Version-Release number of selected component (if applicable):
GNU Awk 4.0.0

How reproducible:
always

Steps to Reproduce:
{ echo "line 1"; echo "line 2"; echo "line 3"; } | awk 'BEGIN { getline } {
print $0 }'


Actual results (GNU Awk 4.0.0):
line 3

Expected results (GNU Awk 3.1.7):
line 2
line 3

--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You reported the bug.


-- 
James Hogan



reply via email to

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