On Sat, May 20, 2006 at 08:38:38PM +0200, Otto Moerbeek wrote:
[typeset -i F and ${F[*]} weirdness]
> this looks like a bug,
It's caused by the fact that for integers str_val() returns the
address of a static buffer and that the loop over the array elements
in varsub() just copies the pointer returned by str_val() into a
pointer vector (eval.c, line 793).
Would strdup()ing and later free()ing all the strings be an option?
Or do you consider that overkill?
Ciao,
Kili

