bug-gawk
[Top][All Lists]
Advanced

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

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


From: Aharon Robbins
Subject: Re: [bug-gawk] Fwd: [Bug 820550] New: gawk: getline in BEGIN skips 2 lines
Date: Fri, 11 May 2012 14:16:40 +0300
User-agent: Heirloom mailx 12.4 7/29/08

Hi. Thanks for the bug report.

This bug is fixed in gawk 4.0.1, which I released a few weeks ago.
The correct option for Redhat is to simply upgrade to the new release.

Thanks again for taking the time to send in a report.

Arnold

> Date: Thu, 10 May 2012 12:55:26 +0100
> From: James Hogan <address@hidden>
> To: address@hidden
> Subject: [bug-gawk] Fwd: [Bug 820550] New: gawk: getline in BEGIN skips 2
>       lines
>
> 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]