Re: array subscripts act differently for integers(ie. let)

2015-02-21 Thread Chet Ramey
On 2/20/15 3:52 PM, Dan Douglas wrote: > IMO bash is exactly correct. I don't know how this could be "fixed" in > a way that would satisfy people without changing something very > fundamental. If you disable the initial expansion to `(())', then > `(($x))' wouldn't work (because arithmetic evaluat

Re: declare in a function makes a variable unable to be found with declare -p in some cases

2015-02-21 Thread Chet Ramey
On 2/20/15 2:42 PM, SN wrote: > Thanks to you both for the answers. I am glad to see that my original > issue has been fixed. > The thread is indeed long and detailed, so let me just leave a note > about a weird behaviour with 4.4.0 (devel) I have that may or may not be > the intended behaviour. >