bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: segfault if nameref set on local variable


From: Dan Douglas
Subject: Re: segfault if nameref set on local variable
Date: Wed, 07 May 2014 11:21:56 -0500
User-agent: KMail/4.13 (Linux/3.14.0-pf1+; KDE/4.13.0; x86_64; ; )

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]