Re: Fwd: nounset option and arrays

2009-02-05 Thread Chet Ramey
> In the following example, I was expecting var2 not to be seen as an unbound > variable after it was declared. Wouldn't it be more consistent with the > treatment of var1 not to issue the unbound variable error in this case? What > is the rationale behind the current behavior? > > bash-

nounset option and arrays

2009-02-05 Thread Poor Yorick
In the following example, I was expecting var2 not to be seen as an unbound variable after it was declared. Wouldn't it be more consistent with the treatment of var1 not to issue the unbound variable error in this case? What is the rationale behind the current behavior? bash-3.2$ shopt -

nounset option and arrays

2009-02-05 Thread Poor Yorick
In the following example, I was expecting var2 not to be seen as an unbound variable after it was declared. Wouldn't it be more consistent with the treatment of var1 not to issue the unbound variable error in this case? What is the rationale behind the current behavior? bash-3.2$ shopt -s