[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] gawk/master exits(?) after @include directive
From: |
Andrew J. Schorr |
Subject: |
Re: [bug-gawk] gawk/master exits(?) after @include directive |
Date: |
Fri, 28 Apr 2017 08:55:54 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Do you mean "exits" rather than "exists"? :-)
I don't see this problem in current master:
bash-4.2$ ./gawk -f test.awk
Hello World!
But the pretty-print output is strange, in that the @include line is
commented out:
bash-4.2$ ./gawk -o- -f test.awk
address@hidden "walkarray"
BEGIN {
print "Hello World!"
}
Regards,
Andy
On Fri, Apr 28, 2017 at 01:10:02PM +0200, Hermann Peifer 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]
> }
> }
> }
--
Andrew Schorr e-mail: address@hidden
Telemetry Investments, L.L.C. phone: 917-305-1748
545 Fifth Ave, Suite 1108 fax: 212-425-5550
New York, NY 10017-3630
- [bug-gawk] gawk/master exists after @include directive, Hermann Peifer, 2017/04/28
- Re: [bug-gawk] gawk/master exists after @include directive, arnold, 2017/04/28
- Re: [bug-gawk] gawk/master exits(?) after @include directive,
Andrew J. Schorr <=
- Re: [bug-gawk] gawk/master exits(?) after @include directive, Hermann Peifer, 2017/04/28
- Re: [bug-gawk] gawk/master exits(?) after @include directive, Andrew J. Schorr, 2017/04/28
- Re: [bug-gawk] gawk/master exits(?) after @include directive, Hermann Peifer, 2017/04/28
- Re: [bug-gawk] gawk/master exits(?) after @include directive, Andrew J. Schorr, 2017/04/28
- Re: [bug-gawk] gawk/master exits(?) after @include directive, Andrew J. Schorr, 2017/04/28
- Re: [bug-gawk] gawk/master exits(?) after @include directive, Manuel Collado, 2017/04/29
- Re: [bug-gawk] gawk/master exits(?) after @include directive, Andrew J. Schorr, 2017/04/29
Re: [bug-gawk] gawk/master exists after @include directive, arnold, 2017/04/29