Re: segfault if nameref set on local variable

2014-05-07 Thread Dan Douglas
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"

Re: segfault if nameref set on local variable

2014-05-07 Thread Chet Ramey
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 violat