On Thu, May 09, 2019 at 01:07:16PM +0200, Ulrich Windl wrote:
> Bash Version: 4.3
> Patch Level: 48
> Release Status: release
>
> Hi!
>
> Is this intended with "set -u":
> # set -u
> # declare -a INSTANCES
> # echo ${INSTANCES[*]}
> bash: INSTANCES[*]: unbound variable
> # INSTANCES=()
> # echo ${INSTANCES[*]}
> bash: INSTANCES[*]: unbound variable
> # echo ${INSTANCES[@]}
> bash: INSTANCES[@]: unbound variable
wooledg:~$ echo "$BASH_VERSION"
5.0.3(1)-release
wooledg:~$ set -u
wooledg:~$ declare -a a
wooledg:~$ echo "${a[*]}"
wooledg:~$ echo "${a[@]}"
Looks like the behavior has already been changed. Your version of bash
is two major releases behind.