bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] getline in BEGIN block swallows an extra line


From: Aharon Robbins
Subject: Re: [bug-gawk] getline in BEGIN block swallows an extra line
Date: Wed, 17 Aug 2011 19:07:51 +0300
User-agent: Heirloom mailx 12.4 7/29/08

Hi. Thanks for the report.

This is fixed in the gawk-4.0-stable branch in the git repo on
savannah.gnu.org.

Thanks,

Arnold

> Date: Wed, 17 Aug 2011 08:09:40 +0100 (BST)
> From: Christer Lundberg <address@hidden>
> To: address@hidden
> Subject: [bug-gawk] getline in BEGIN block swallows an extra line
>
> In Cygwin gawk version 4.0.0-1, doing a getline in the BEGIN block seems
> to swallow an extra line. Example:
>
> # gawk --version
> GNU Awk 4.0.0
> # seq 1 5 > tmp
> # awk 'BEGIN{getline; print "BEGIN:",$0} {print "MAIN:",$0}' tmp? 
> BEGIN: 1
> MAIN: 3
> MAIN: 4
> MAIN: 5
>
> Thanks. My apologies if it is not a bug or if it is already reported or fixed!
>
> -- Christer



reply via email to

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