Re: certain strings both legal and illegal as associative array keys

2015-03-09 Thread vampyrebat
> these two array subscripts, while > they appear identical, are not exactly the same: > > foo["a'b"]=two > unset foo["a'b"] > > The first does not undergo any word expansions before the array > assignment code runs, so that code performs the appropriate word > expansions (everything except word

Re: certain strings both legal and illegal as associative array keys

2015-03-03 Thread vampyrebat
Thanks again for the clear explanation, Greg. > I don't think this is documented in the manual. I contend that it ought to be. While not a bug in functionality, as I originally thought I was reporting, an omission from the documentation is still a minor bug.

Re: certain strings both legal and illegal as associative array keys

2015-03-02 Thread vampyrebat
Thank you, Greg, for the quick, helpful response. > Your best bet is to store the > index in a variable instead of trying to deal with multiple levels > of quoting in the same argument. In the script where this problem arose, the index is indeed stored in a variable, and I tried various ways of

certain strings both legal and illegal as associative array keys

2015-02-28 Thread vampyrebat
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: i686-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/loc