bug-bash
[Top][All Lists]
Advanced

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

declare is no longer creating array variables


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

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]