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: Mon, 08 Dec 2025 04:04:23 -0700

From:   Greg Wooledge
Subject: Re: assoc_expand_once
Date:   Sun, 7 Dec 2025 21:01:36 -0500

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

> Give us an example where turning on assoc_expand_once improves the
> outcome.

I don't have one, nor did I ever claim that there was one.

I'm really just asking questions here.  I'm not claiming any bug or
even misfeature - hence my posting in the help (not bug) list.

I *am* claiming that it is a mess and it'd be better if it "just
worked".  What I am trying to determine is whether things have gotten
any less messy in current version(s).  And I was (and still am) hoping
for a definitive answer from someone who actually knows, as opposed to
us in the peanut gallery just taking empirical shots at it.
Unfortunately, it appears that the cardinality of the set of people
who actually know something is 1.

>> 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.

> Do you have a short reproducer?

I did (sort of) at one time - but as I said, I did both things
(upgraded to a newer version of bash (to 5.1.8) and added the "shopt"
line for assoc_expand_once) at the same time.

So, I'm not sure which one fixed it.  And it is possible that I
mis-interpreted Chet's instructions/comments back then.  I may not
have needed to add the "shopt" line at all.

But, as I've said all along in this thread, I am really hoping for an
analytic answer rather than an empirical/trial-and-error one.

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

> I seriously doubt there is any such magic bullet.  But if you find one,
> please let us know.

It would be really sad if that were the true state of affairs (and I'm
not saying that it isn't...)




reply via email to

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