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


Groups > gnu.bash.bug > #14362 > unrolled thread

Re: test -v and environment variable names with subscripts

Started byChet Ramey <chet.ramey@case.edu>
First post2018-07-18 15:50 -0400
Last post2018-07-18 15:50 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: test -v and environment variable names with subscripts Chet Ramey <chet.ramey@case.edu> - 2018-07-18 15:50 -0400

#14362 — Re: test -v and environment variable names with subscripts

FromChet Ramey <chet.ramey@case.edu>
Date2018-07-18 15:50 -0400
SubjectRe: test -v and environment variable names with subscripts
Message-ID<mailman.3776.1531943419.1292.bug-bash@gnu.org>
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/

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web