Re: Declaring arrays with empty string in one line is bugged

2020-08-05 Thread Chet Ramey
On 8/4/20 1:31 PM, andy_bash wrote: > Bash Version: 5.1 > Patch Level: 0 > Release Status: alpha > > Description: >         Declaring an array and setting it with empty strings ("") in one > line is bugged in bash 5.1 alpha. This has worked in bash 3.2-5.0 without > issue. Thanks for the report.

Re: Declaring arrays with empty string in one line is bugged

2020-08-04 Thread Koichi Murase
It also reproduces in the current devel branch. $ bash-dev -c 'declare -a arr=(""); declare -p arr' declare -a arr=() $ bash-5.0 -c 'declare -a arr=(""); declare -p arr' declare -a arr=([0]="") 2020-08-05 3:33 andy_bash : > Sorry, the colors got messed up on the last email It's still messed up.

Declaring arrays with empty string in one line is bugged

2020-08-04 Thread andy_bash
Sorry, the colors got messed up on the last email ​Configuration Information [Automatically generated, do not change]:Machine: x86_64OS: linux-muslCompiler: gccCompilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-securityuname output: Linux 37b7613044c1 5.5.7-200.fc31.x86_64 #1 SMP Fri Feb 28

Declaring arrays with empty string in one line is bugged

2020-08-04 Thread andy_bash
​Configuration Information [Automatically generated, do not change]:Machine: x86_64OS: linux-muslCompiler: gccCompilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-securityuname output: Linux 37b7613044c1 5..5.7-200.fc31.x86_64 #1 SMP Fri Feb 28 17:18:37 UTC 2020 x86_64 GNU/LinuxMachine Type: