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

Re: awk bug



On Sun, 7 Jun 1998, Theo de Raadt wrote:

>Well, your bug report regarding awk seems to have some serious problems.
>
>1) You failed to tell us what architecture.
>2) You failed to tell us what revision.
>
>That said, on an i386 running 2.3, this problem does not exist.`

Oops. I'm running -current (as of last Saturday) on pmax (5000/240).
Anyone else out there with a pmax that can try this out to verify that
it's a bug?

># cat /dev/null | awk '
>> BEGIN {
>>   for (i = 0; i < 11; ++i) {
>>     a[i] = "abc"
>>   }
>> }
>> END {
>>   for (i = 0; i < 11; ++i) {
>>     printf ("%d %s\n", i, a[i])
>>   }
>> }'
>0 abc
>1 abc
>2 abc
>3 abc
>4 abc
>5 abc
>6 abc
>7 abc
>8 abc
>9 abc
>10 abc

-- 
albert chin (china_(_at_)_pprd_(_dot_)_abbott_(_dot_)_com)