bug-bash
[Top][All Lists]
Advanced

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

"set -u" and empty arrays


From: Ulrich Windl
Subject: "set -u" and empty arrays
Date: Thu, 09 May 2019 13:07:16 +0200

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 address@hidden
bash: address@hidden: unbound variable

Reagrds,
Ulrich





reply via email to

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