help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: assoc_expand_once


From: Stan Marsh
Subject: Re: assoc_expand_once
Date: Sun, 07 Dec 2025 18:56:40 -0700

I do not care about any earlier versions. I think that was made clear in
the OP.

And, I understand that the history on this is murky. To be honest, I'm
surprised that this is as buggy as it seems to be. When I first hit this
problem, I was amazed that assoc arrays in bash didn't "just work" (like
they do in, e.g., GAWK).

Anyway, for my main project - a large and complex bash script that uses
assoc arrays extensively - I hit this problem and was, as I've said,
amazed. I ended up upgrading the version of bash used to run the script
and added the shopt line to set assoc_expand_once (at Chet's suggestion
via private email) and the problem went away. The problem that I now
face is that I don't know if it went away because of the bash version
upgrade or because of the shopt. Hence the reason for starting this
thread.

What I really want to know is: What settings should I use (with bash
5.3) to have things "just work" ?

Also note: I think I may have read someone on these forums that it is
not necessary to set it anymore, because whatever functionality it
implements is now in by default. That's kind of what I meant by "Is it
set by default?"

=================================================================================
Please do not send me replies to my posts on the list.
I always read the replies via the web archive, so CC'ing to me is unnecessary.

When responding to my posts, please try to refrain from giving bureaucratic 
answers.
If you have nothing useful to say, then just click Next and go on.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]