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

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

gawk bug: delete array


From: YAMAGUCHI Takanori
Subject: gawk bug: delete array
Date: Mon, 05 Mar 2001 18:31:34 +0900

Hi,

The following script is core dumped at delete x[y[i]]
on gawk 3.0.6. It works normally on gawk 3.0.5 or earlier.

I compiled it by using of gcc 2.95.2 on FreeBSD 4.1R and
gcc 2.95.1 on Solaris 2.7, and the both have the same results.

I'm sorry for my poor English.

BEGIN{
    x["a"] = "a"
    x["b"] = "b"
    x["c"] = "c"
    x["d"] = "d"
    x["e"] = "e"
    x["f"] = "f"
    x["g"] = "g"
    y[1] = "c"
    y[2] = "d"
    y[3] = "e"
    for(i in y) delete x[y[i]]
}

-- 
YAMAGUCHI Takanori <address@hidden>



reply via email to

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