Re: That old assoc array bug (with unset and assoc_expand_once)...
From:
Chet Ramey
Subject:
Re: That old assoc array bug (with unset and assoc_expand_once)...
Date:
Wed, 25 Feb 2026 14:42:31 -0500
User-agent:
Mozilla Thunderbird
On 2/25/26 2:07 PM, Stan Marsh wrote:
But this whole thread
goes to show you how dangerous it can be to mess with the shopt options.
It's not necessarily dangerous if you remember you're doing it, and
document your reasoning (even in the script itself).
The unhelpful part is not including the shell options you modified from
the default in your original report, which led people to assume you were
using a default shell environment and answer using that framework.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/