Re: Antw: Re: "set -u" and empty arrays

2019-05-14 Thread Eli Schwartz
On 5/14/19 2:53 AM, Ulrich Windl wrote: Chet Ramey schrieb am 13.05.2019 um 21:44 in Nachricht > : >> On 5/9/19 7:07 AM, Ulrich Windl wrote: >>> Bash Version: 4.3 >>> Patch Level: 48 >>> Release Status: release >>> >>> Hi! >>> >>> Is this intended with "set -u": >>> # set -u >>> # decla

Antw: Re: "set -u" and empty arrays

2019-05-13 Thread Ulrich Windl
>>> Chet Ramey schrieb am 13.05.2019 um 21:44 in Nachricht : > On 5/9/19 7:07 AM, 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: INSTAN

Re: "set -u" and empty arrays

2019-05-13 Thread Chet Ramey
On 5/9/19 7:07 AM, 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:

Re: "set -u" and empty arrays

2019-05-09 Thread Greg Wooledge
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 $

"set -u" and empty arrays

2019-05-09 Thread Ulrich Windl
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: INSTANC