bug-bash
[Top][All Lists]
Advanced

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

Re: declare is no longer creating array variables


From: Øyvind 'bolt' Hvidsten
Subject: Re: declare is no longer creating array variables
Date: Fri, 30 Jan 2015 13:02:16 +0100
User-agent: Cathedral Secure Mail v0.8

Nevermind.
I was pointed at http://lists.gnu.org/archive/html/bug-bash/2014-03/msg00120.html which explains the issue.

On 30/01/15 12:13, Øyvind 'bolt' Hvidsten wrote:
Tested with shbot in #bash (freenode):
42# set -u; declare -a foo; echo ${#foo[@]}
0
43# set -u; declare -a foo; echo ${#foo[@]}
bash: foo: unbound variable
43# set -u; foo=(); echo ${#foo[@]}
0

Is this a bug?





reply via email to

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