"Chris F.A. Johnson" <ch...@cfajohnson.com> writes: > On Fri, 22 Oct 2010, Andreas Schwab wrote: > >> Axel <axel.aze...@laposte.net> writes: >> >>> After your answer, I checked and I think the error message is not >>> related to the variable name collision : >>> >>> [a...@axel-asus plugins]$ unset foo >>> [a...@axel-asus plugins]$ func() >>>> { >>>> echo "[a]=5 [b]=10" >>>> } >>> [a...@axel-asus plugins]$ declare -A foo=( $(func) ) >> >> $ declare -A foo=('[a]=5') > > Drop the qotes:
You missed the point. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."