Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14362
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: test -v and environment variable names with subscripts |
| Date | 2018-07-18 15:50 -0400 |
| Message-ID | <mailman.3776.1531943419.1292.bug-bash@gnu.org> (permalink) |
| References | <CAMu=BrooFcyHWsERqYnbcgHertcGs2VG6Acb+sK4cWxT8cNCDg@mail.gmail.com> |
On 7/17/18 5:19 PM, Grisha Levit wrote: > When there is a variable with a name that includes a subscript in the > environment, test -v looks at that variable rather than an array with > that subscript. Even though bash needs to do a better job to segregate environment variables with invalid names, there are a couple of changes I can make to the test -v code to improve it, too. 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: test -v and environment variable names with subscripts Chet Ramey <chet.ramey@case.edu> - 2018-07-18 15:50 -0400
csiph-web