On Friday, June 14, 2013 02:30:19 PM Pierre Gaston wrote: > On Fri, Jun 14, 2013 at 2:25 PM, Dan Douglas <orm...@gmail.com> wrote: > > Also forgot to mention (though it should be obvious). > > > > $ ~/doc/programs/bash43 -c 'function f { typeset -n x=$1; : "$x"; }; a=(yo > > jo); f "a[\$(echo yes this even applies to namerefs>&2)0]"' > > yes this even applies to namerefs > > > > In a nutshell bash namerefs don't actually enable any new functionality. > > It's > > just a convenient syntax, makes dealing with keys indirectly easier, and > > improves portability in some limited cases. > > > Maybe nameref also allows to avoid name clashes (which I believe is > not that easy to workaround now)?
It doesn't. https://gist.github.com/ormaaj/5682807 -- Dan Douglas