On Sunday, July 21, 2013 08:39:29 PM Linda Walsh wrote: > I don't think so. Not from the above. > > The first sets up an array outside the function composed of integers, > so the 2nd time I execute the same, it gets put through the "integer > strainer". > > The bug is that the "-i" isn't applied until after the array assignment > is done.. which isn't the case for scalars: >
That's exactly what I'm saying. This has been discussed on the list before and I'm pretty sure Chet knows about it. I wrote about this here over a year ago: http://wiki.bash-hackers.org/syntax/arrays#integer_arrays I think I even have some code that relies upon this effect. -- Dan Douglas