On 12/22/25 10:01 AM, Koichi Murase wrote:
2025年12月22日(月) 22:40 Greg Wooledge <[email protected]>:
On Mon, Dec 22, 2025 at 10:46:12 +0800, 王伟 wrote:
Is this behavior intentional design, or is it considered a bug / limitation
of associative array assignment?

I believe « declare -A assoc=("${kv[@]}") » should be supported [where
kv is an indexed array in the form kv=(key1 value1 key2 value2 ...)].

https://lists.gnu.org/archive/html/bug-bash/2025-12/msg00030.html

explains why this doesn't happen. It seems like you want a different
order of operations.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

    • Re: Quest... Félix Hauri via Bug reports for the GNU Bourne Again SHell
      • Re: Q... Greg Wooledge
        • R... Félix Hauri via Bug reports for the GNU Bourne Again SHell
          • ... Félix Hauri via Bug reports for the GNU Bourne Again SHell
          • ... Greg Wooledge
  • Re: Question a... Chet Ramey

Reply via email to