Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14898

Re: temp env allows variables that look like array subscripts

From Grisha Levit <grishalevit@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: temp env allows variables that look like array subscripts
Date 2018-12-08 23:45 -0500
Message-ID <mailman.5420.1544330716.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>

Show all headers | View raw


FWIW, namerefs in the temporary environment bypass the implemented checks:

    $ declare -n ref=var[0]
    $ ref=X printenv 'var[0]'
    X

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: temp env allows variables that look like array subscripts Grisha Levit <grishalevit@gmail.com> - 2018-12-08 23:45 -0500

csiph-web