On Wednesday, May 07, 2014 10:58:42 AM Chet Ramey wrote: > On 5/7/14, 10:21 AM, Dan Douglas wrote: > > Another one to do with namerefs. :-) > > > > Looks like it's when the target of the ref is local to the same scope. > > > > $ gdb -q -ex 'run -c "function f { typeset x; typeset -n x; x=y; }; f"' > > ./bash > > Thanks for the report. This is an abstraction layer violation (and a long- > lived one; it's been this way for years). I've attached a patch for people > to play with.
...And I noticed the patch pop up on my screen from Gentoo's CVS feed before noticing my own inbox. Works great here. -- Dan Douglas