bug-bash
[Top][All Lists]
Advanced

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

Re: Minor bug declaring arrays of integers: dcl -ai=>broken, dcl -ia=>ok


From: Dan Douglas
Subject: Re: Minor bug declaring arrays of integers: dcl -ai=>broken, dcl -ia=>ok
Date: Sun, 21 Jul 2013 22:51:53 -0500
User-agent: KMail/4.10.5 (Linux/3.10.1-pf+; KDE/4.10.5; x86_64; ; )

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



reply via email to

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