[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] Change in behavior of getline
From: |
John Haque |
Subject: |
Re: [bug-gawk] Change in behavior of getline |
Date: |
Mon, 18 Jul 2011 07:02:47 -0500 |
User-agent: |
Mutt/1.4.2.2i |
On Fri, Jul 15, 2011 at 08:37:54AM -0500, address@hidden wrote:
> This is similar to the problem of (g)sub not preserving space
> when there were no substitutions.
>
> $ ./gawk --version | head -n 1
> GNU Awk 3.1.8
> $ echo ' aaa bbb' | ./gawk 'END { getline $2; print}'
> aaa bbb
>
> $ ./gawk --version | head -n 1
> GNU Awk 4.0.0
> $ echo ' aaa bbb' | ./gawk 'END { getline $2; print}'
> aaa bbb
The attached patch fixes the problem.
Thanks.
John
getline_fix.diff
Description: Text document