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: Sat, 29 Apr 2017 14:15:21 -0600
User-agent: Heirloom mailx 12.4 7/29/08

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]