Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14421
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: delcare -a on a nameref in a function modifies nameref instead of target |
| Date | 2018-07-30 11:49 -0400 |
| Message-ID | <mailman.4419.1532965804.1292.bug-bash@gnu.org> (permalink) |
| References | <CAMu=BrqTimtENjRABPgRdDhn5bQG2zBMv5YfQsNQDETh6oAjeQ@mail.gmail.com> <CAMu=Brq3CfiUWmauM8n=MYHeaWSywE5_sEJzBd0ET3SrrB+1KA@mail.gmail.com> <ae9ccdae-89e3-388b-d6e5-e1ce6cd914dd@case.edu> <CAMu=Brp59ZhQxf8e9PqhVL4QsoE-qASRcuJ=vz7XqBKgO-zsGw@mail.gmail.com> |
On 7/29/18 4:04 PM, Grisha Levit wrote: > I think there's a related regression in the latest devel commit. Creating a > local variable with the same name as a higher-scoped nameref pointing to an > unset variable creates a local variable with the name of the target of the > nameref. I think forcing the local variable creation to only follow namerefs at the same variable scope is the right thing to do here. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: delcare -a on a nameref in a function modifies nameref instead of target Chet Ramey <chet.ramey@case.edu> - 2018-07-30 11:49 -0400
csiph-web