Possible issue with awk

Denys Vlasenko vda.linux at googlemail.com
Wed Mar 10 17:51:38 UTC 2010


On Wed, Mar 10, 2010 at 6:38 PM, Harald Becker <ralda at gmx.de> wrote:
>
>> out.o:
>> 00000001 T one
>> 00000002 T two
>>
>> %%
>>
>> FOO_1.0 {
>>   one
>> }
>>
>> %inherit FOO_1.1 FOO_1.0
>> FOO_1.1 {
>> # not emitted
>> }
>>
>> FOO_2.0 {
>>   two
>> }
>> EOB
>>
>> FOO_2.0 should be printed but it's not.
>
> gawk, gawk --compat and gawk --posix and two other awk's I tried with do
> all display the FOO_2.0 section on output. Looks like it's a problem
> with busybox awk. I'm trying to track that down ...

It's a problem with nested loops using the same variable.
I have a fix for this simple case, but there is a nastier
case where inner loop ends via "break"...
--
vda


More information about the busybox mailing list