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
To quote Aharon Robbins on gawk-bugs list (http://lists.gnu.org/archive/html/bug-gawk/2012-05/msg00009.html): 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
The component has changed its owner to me, so I'm assigning the bug to myself.
gawk-4.0.1-1.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/gawk-4.0.1-1.fc17
gawk-4.0.1-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/gawk-4.0.1-1.fc16
Package gawk-4.0.1-1.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing gawk-4.0.1-1.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-9014/gawk-4.0.1-1.fc16 then log in and leave karma (feedback).
Thanks, gawk-4.0.1-1.fc16.x86_64 fixes this issue for me.
gawk-4.0.1-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
gawk-4.0.1-1.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.