Re: Bash parameter transforamtion on empty array triggers unset variable.

2020-08-12 Thread Chet Ramey
On 8/11/20 11:45 AM, Andrew Neff wrote: > Ah, I see the confusion. > > The issue you pointed out, "@Q breaks set -o nounset" refers to quote > parameter expansion, as does the line in CHANGES-5.1, 1.q, which makes > sense to call this a bug that was allowed in bash 4.4 and 5.0. Not quite. The rep

Re: Bash parameter transforamtion on empty array triggers unset variable.

2020-08-11 Thread Andrew Neff
Ah, I see the confusion. The issue you pointed out, "@Q breaks set -o nounset" refers to quote parameter expansion, as does the line in CHANGES-5.1, 1.q, which makes sense to call this a bug that was allowed in bash 4.4 and 5.0. I should have specified, the focus of this issue is the "@a" expansi

Re: Bash parameter transforamtion on empty array triggers unset variable.

2020-08-11 Thread Chet Ramey
On 8/10/20 5:52 PM, Andrew Neff wrote: > Bash Version: 5.1 > Patch Level: 0 > Release Status: alpha > > Description: >         I do not know if this is related to bash 5.1 erroneously being > "a little aggressive about skipping over empty strings" mentioned > in "Declaring arrays with empty strin

Bash parameter transforamtion on empty array triggers unset variable.

2020-08-10 Thread Andrew Neff
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-musl Compiler: gcc Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security uname output: Linux 28e237a5e16f 5.5.7-200.fc31.x86_64 #1 SMP Fri Feb 28 17:18:37 UTC 2020 x86_64 GNU/Linux Machine Type: