bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] bug in gawkapi.c:sym_update_real


From: Assaf Gordon
Subject: Re: [bug-gawk] bug in gawkapi.c:sym_update_real
Date: Mon, 17 Dec 2012 20:20:45 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4

Thank you Andrew!

Andrew J. Schorr wrote, On 12/17/2012 07:55 PM:
> On Mon, Dec 17, 2012 at 06:59:50PM -0500, Assaf Gordon wrote:
> 
> Please try the attached patch.  It makes sure to update the "node->type"
> value from Node_var_new to Node_var.
> 

With your patch, it works!

The corresponding "header.awk" file is
===
@load "header.so"
BEGIN {
        getline ;
        for (i=1;i<=NF;++i) {
                create_variable($i "" ,i)
        }
}
===

and running something like:

  gawk -i header '$age>43' INPUT

works as expected.

-gordon




reply via email to

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