> 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
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.
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
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