Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14905
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: temp env allows variables that look like array subscripts |
| Date | 2018-12-11 15:07 -0500 |
| Organization | ITS, Case Western Reserve University |
| Message-ID | <mailman.5603.1544558876.1284.bug-bash@gnu.org> (permalink) |
| References | <CAMu=Brp=7yuZwb5qa-ymLWsuS=N0qyQvR7KopO5vfZTm==DM8Q@mail.gmail.com> <38b37862-1f2b-fb34-6ab6-8cd6c9439908@case.edu> <CAMu=BroyPAAq0oOH5+0aHGr9_f5_j3k0AuY5TOkP2n+ZhkEjOA@mail.gmail.com> <CAMu=Brpe=c=YEOot1mu66d5DX+3eiscVHGzqcmAj_+bA62VRTg@mail.gmail.com> |
On 12/8/18 11:45 PM, Grisha Levit wrote: > FWIW, namerefs in the temporary environment bypass the implemented checks: > > $ declare -n ref=var[0] > $ ref=X printenv 'var[0]' > X Thanks for the report. We should follow namerefs, but in this case not allow nameref values that aren't valid shell identifiers. I will fix this for the next devel branch push. -- ``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: temp env allows variables that look like array subscripts Chet Ramey <chet.ramey@case.edu> - 2018-12-11 15:07 -0500
csiph-web