[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] bug in 4.0.0?
From: |
Aharon Robbins |
Subject: |
Re: [bug-gawk] bug in 4.0.0? |
Date: |
Fri, 27 Jan 2012 11:50:16 +0200 |
User-agent: |
Heirloom mailx 12.4 7/29/08 |
Hi. Re this:
> Date: Fri, 20 Jan 2012 11:39:05 -0500 (EST)
> From: "Frank W. Samuelson" <address@hidden>
> To: address@hidden
> Subject: [bug-gawk] bug in 4.0.0?
>
> Hello, Gawkers,
>
> After 17 years of using gawk, I think I may have discovered
> a bug. Apparently it was introduced in 4.0.0, though
> perhaps it has already been found.
>
> Gawk 3.1.8 gives what I would expect.
>
> ] echo -e "1\n2\n3" | gawk 'BEGIN{getline} {print $1}'
> 2
> 3
> ]
>
> The same command on Gawk 4.0.0 gives
>
> ]echo -e "1\n2\n3" | gawk 'BEGIN{getline} {print $1}'
> 3
> ]
>
> Thanks for all the gawk.
This is indeed a bug. It has been fixed in the development sources
(the gawk-4.0-stable branch in the git repo). I hope to make a beta
release of that version available shortly.
If you need a working version, the easiest way to get it is to clone
the git repo. Otherwise, please contact me off list.
Thanks,
Arnold