Hello,

I would like to report an unexpected behavior with array declaration on latest 
Bash, which is very likely to be a bug. I discovered this when I found Pinentry 
could not display GUI windows properly.

- Bash version: 5.2.26(1)-release
- OS: Arch Linux (Kernel: 6.9.9-arch1-1) (My PC), and Termux (My phone)

Steps to reproduce:

- Declare an array: `a=(aa bb cc dd)`
- Print this array: `echo $a` or `printf $a`

Expected behavior:

Output `aa bb cc dd`

Actual behavior:

Output `aa` only

I hope my information can help.

Kind Regards,
Charles

Sent with [Proton Mail](https://proton.me/) secure email.
  • [Bug] Array de... Charles Dong via Bug reports for the GNU Bourne Again SHell

Reply via email to