[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: awk bug
From: |
Aharon Robbins |
Subject: |
Re: awk bug |
Date: |
Sun, 19 Aug 2001 11:24:06 +0300 |
Greetings. Re this:
> From: Larry Auton <address@hidden>
> To: address@hidden
> Subject: awk bug
> Date: Fri, 17 Aug 2001 16:59:52 -0400 (EDT)
>
> I realize that the order of evaluation is "questionable" here
Yes, that's true.
> but this seems like a bug
>
> $ awk --version|sed 1q
> GNU Awk 3.0.6
> $ awk '
> END {
> i = 1;
> a[1] = 8;
> print i" "a[1]" "a[i++];
> }' /dev/null | od -c
> 0000000 320 8 8 \n
> 0000006
>
> The first output byte = octal 320 looks like a corrupt stack.
>
> N.B> changing the " " (quoted space) to a "," (comma) makes the
> problem disappear.
>
> I tried this under 3.1.0 and it doesn't exhibit the problem.
This is a bug, and it was fixed for the 3.1.0 release.
As 3.1.0 is the current version, and as it doesn't exhibit the
problem, the solution is simply to upgrade. I don't intend to
do any more patches for the 3.0.x gawk line.
Thanks for the bug report.
Arnold
- awk bug, Larry Auton, 2001/08/17
- Re: awk bug,
Aharon Robbins <=