[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug] Array declaration only includes first element
From: |
Charles Dong |
Subject: |
[Bug] Array declaration only includes first element |
Date: |
Thu, 18 Jul 2024 00:00:17 +0000 |
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 declaration only includes first element,
Charles Dong <=