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


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

Re: test -v and environment variable names with subscripts

Started bykonsolebox <konsolebox@gmail.com>
First post2018-07-20 02:44 +0800
Last post2018-07-20 02:44 +0800
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 konsolebox <konsolebox@gmail.com> - 2018-07-20 02:44 +0800

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

Fromkonsolebox <konsolebox@gmail.com>
Date2018-07-20 02:44 +0800
SubjectRe: test -v and environment variable names with subscripts
Message-ID<mailman.3838.1532025887.1292.bug-bash@gnu.org>
On Wed, Jul 18, 2018 at 5:19 AM, Grisha Levit <grishalevit@gmail.com> wrote:
> $ set -u; unset var; f() { test -v 'var[0]'; echo $?; }; var[0]=X f
> 0
> -bash: var[0]: unbound variable

I'm not getting this error.  What version of bash are you using?

-- 
konsolebox

[toc] | [standalone]


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


csiph-web