On 2021/03/15 17:12, Chet Ramey wrote:
I'm kicking around a change This means that, given the following script,

declare -A a
key='$(echo foo)'
a[$key]=1
a['$key']=2
a["foo"]=3

What do folks think?
---
   Looks like a flexible way to deal with some of the side effects
of the double-dequoting.  While the above might not look straightforward
to those used to the current behavior, it's easier to explain
and gives the variety needed to expand on keys for each of the
situations.
   That said, I'd want to see those examples in the manpage.
FWIW -- I seem to remember that the manpage could use some more
simple examples in a few places.

Chet


Reply via email to