bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: test -v and environment variable names with subscripts


From: konsolebox
Subject: Re: test -v and environment variable names with subscripts
Date: Fri, 20 Jul 2018 02:44:03 +0800

On Wed, Jul 18, 2018 at 5:19 AM, Grisha Levit <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]