bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] gawk/master exists after @include directive


From: arnold
Subject: Re: [bug-gawk] gawk/master exists after @include directive
Date: Sun, 30 Apr 2017 02:06:50 -0600
User-agent: Heirloom mailx 12.4 7/29/08

And on Ubuntu 16.04, CentOS 6.9 and Cygwin, I do see the problem. Gag!

I'll work on it when I get a chance.

Andy, if you want to push your temporary fix so that master isn't broken,
that's OK.

Thanks,

Arnold

address@hidden wrote:

> Hi.
>
> On my Ubuntu 12.04 system with gawk master, there is no problem.
>
> I will check later on my Ubuntu 16.04.
>
> Thanks,
>
> Arnold
>
> "Hermann Peifer" <address@hidden> wrote:
>
> > See the below example. The bug appears in committ 09149c0..
> > Fix --source to be like 3.1.x and improve the doc. The sample code
> > works fine with the previous committ (84f33c8... Really fix the 64 bit
> > alignment issue.)
> >
> > Hermann
> >
> >
> > $ cat test.awk
> > @include "walkarray"
> > BEGIN { print "Hello World!"}
> >
> > $ ./gawk.84f33c8 -f test.awk
> > Hello World!
> >
> > # No output here :-(
> > $ ./gawk.09149c0 -f test.awk
> >
> >
> > # Pretty-print output for both cases
> >
> > $ ./gawk.84f33c8 -o- -f test.awk
> > BEGIN {
> >         print "Hello World!"
> > }
> >
> >
> > function walk_array(arr, name, i)
> > {
> >         for (i in arr) {
> >                 if (isarray(arr[i])) {
> >                         walk_array(arr[i], name "[" i "]")
> >                 } else {
> >                         printf "%s[%s] = %s\n", name, i, arr[i]
> >                 }
> >         }
> > }
> >
> > $ ./gawk.09149c0 -o- -f test.awk
> >
> > function walk_array(arr, name, i)
> > {
> >         for (i in arr) {
> >                 if (isarray(arr[i])) {
> >                         walk_array(arr[i], name "[" i "]")
> >                 } else {
> >                         printf "%s[%s] = %s\n", name, i, arr[i]
> >                 }
> >         }
> > }



reply via email to

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