bug-gnu-utils
[Top][All Lists]
Advanced

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

awk bug


From: Larry Auton
Subject: awk bug
Date: Fri, 17 Aug 2001 16:59:52 -0400 (EDT)

I realize that the order of evaluation is "questionable" here
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.

-lda



reply via email to

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