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

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

ASORT / DELETE bug in 3.1.0?


From: Katherine Wasserman
Subject: ASORT / DELETE bug in 3.1.0?
Date: Mon, 22 Dec 2003 20:00:30 -0500

I'm not quite sure you would consider this a bug, and it has an easy work-around, but there seems to be a problem with the use of 'asort' and 'delete' when called this way:

--------------------------------------------------------------------
BEGIN {
 b()
}

function a()
{ asort(x)
}

function b()
{ delete x
}
-----------------------------------------------------------------

I've tested this only in 3.1.0 and it gives the error: "fatal: delete: illegal use of variable `x' as array"

If 'delete' comes before 'asort', syntactically no error is reported. It appears that the parser thinks that 'x' is a scalar because it's use in 'asort'.

Thanks,

Katie





reply via email to

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