bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] getline change of behavior in 4.0.0


From: Andrew J. Schorr
Subject: Re: [bug-gawk] getline change of behavior in 4.0.0
Date: Sat, 17 Mar 2012 16:55:32 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

Hi Andrew,

Thanks, that example makes it clear.  This is a bug that has already been
fixed.

Please find below a previous message on this list addressing this issue.

Regards,
Andy

On Tue, Feb 07, 2012 at 10:32:45PM +0200, Aharon Robbins wrote:
> Hi. Re this.  It's a bug, fixed already in the git repo. The
> best way to get an up to date version is to use git to get the
> source, then
> 
>       git checkout gawk-4.0-stable
>       ./bootstrap.sh
>       ./configure && make && make check
> 
> Thanks,
> 
> Arnold
> 
> > Date: Mon, 6 Feb 2012 15:05:49 +0100
> > From: Goran ??engi?? <address@hidden>
> > To: address@hidden
> > Subject: [bug-gawk] Is this a bug?
> >
> > I try running this script with GNU Awk 4.0.0 distributed with Cygwin
> >
> >
> > #!/bin/awk -f
> >
> > BEGIN {
> >     getline
> > }
> >
> > {
> >     print $0
> > }
> >
> >
> > on an example file like this
> >
> >
> > 0
> > 1
> > 2
> > 3
> > 4
> > 5
> > 6
> >
> >
> > and I get
> >
> >
> > 2
> > 3
> > 4
> > 5
> > 6
> >
> > I know that line "0" got consumed by the getline but what happened to line 
> > "1"?
> >
> > Kind regards,
> >
> >     Goran
> > -- 
> > Goran ??engi??
> > Gibraltargatan 40
> > 412 58 G??teborg
> >
> > mob: 073-9037010
> >
> > Have a nice day :)
> >



reply via email to

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