[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] getline difference from gawk versions >=4.0.0
From: |
Aharon Robbins |
Subject: |
Re: [bug-gawk] getline difference from gawk versions >=4.0.0 |
Date: |
Fri, 13 Jul 2012 12:12:50 +0300 |
User-agent: |
Heirloom mailx 12.4 7/29/08 |
Hi. Re this:
> Date: Sun, 01 Apr 2012 11:49:33 +0100
> From: Duncan Moore <address@hidden>
> To: "address@hidden" <address@hidden>
> Subject: [bug-gawk] getline difference from gawk versions >=4.0.0
>
> Hi
>
> b.awk:
>
> BEGIN {
> system("echo 1 > f")
> while ((getline a[++c] < "f") > 0) {}
> print c
> }
>
> gawk -f b.awk
>
> Prior to gawk 4.0.0 this outputs:
>
> 1
>
> For 4.0.0 and 4.0.1 it outputs:
>
> 2
>
> Regards
> Duncan Moore
Per my prior mail, it's an implementation issue. I think the current
behavior is correct.
I have now added this as a test case and also documented the issue
in the manual.
Thanks,
Arnold
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [bug-gawk] getline difference from gawk versions >=4.0.0,
Aharon Robbins <=