Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: uninvited members of associative array
- X-seq: zsh-users 28544
- From: Dominik Vogt <dominik.vogt@xxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: uninvited members of associative array
- Date: Fri, 16 Dec 2022 03:09:25 +0100
- Archived-at: <https://zsh.org/users/28544>
- In-reply-to: <0c2b1f8f-35bb-cd52-3d22-0964a73945b2@eastlink.ca>
- List-id: <zsh-users.zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- References: <e2358c69-b70f-8ed7-ce91-218e65a0189f@eastlink.ca> <b63cd138-fc96-4c4b-b6dd-49205652363a@app.fastmail.com> <0c2b1f8f-35bb-cd52-3d22-0964a73945b2@eastlink.ca>
- Reply-to: dominik.vogt@xxxxxx
- Ui-outboundreport: notjunk:1;M01:P0:nXdvafklzeg=;jJpBrMZWzIyjtr6aMJovwBRML75 kCPQVHpgeWP9qz2ZXD95p8a2aRO1oQ5xHX3GR8oC6gcf0+aoLIsr8srXbEpueWPhQXs+pynbz R9k+OHGt9EwsgCoOZ4ogVIGANXZJ3maVi1ESuDhtu6Fed1s8Qs9Pj9i4pmkR5Z8yr1d9vwif9 t2HJ55E2zZ5MRbSxxWDvYkjbPA0Ny4fjbF+wDpVN0LnQddJLFwE6n8cUJVBDZOv+hh9zD87y4 0YC74XK3CTqYcGfbPDNLA6zJuPqgIyuvsWJ9OLEKEYi505/CW3o0npoy/r9/UVvp0aH031oEA sx+R1uw8K/yGBWbvgGjOxdghht07ZqbvpmFHqgFu+ENis/rw9spxD+iUkssRFcfuT8UGp4PgU +NwLfvekLNHyKmE1x3+p/V0MU7DyHoR5pODhcIr27xGNZZcyo0CAvgYFdGdSunqsv3D0enqsF CMApvrLbeIzcO3nTrhJROfERSNvlHY9uBVdfaBI49SXNM1IHK52pOJv2rOn1KIx8ctfUZnlCH VwOfjjZCt5dkksfbcdGfPF9E8GnjpcXzEd21tPjjWJJCdAv3yBmGfURJUklMj10ZTvMNflEj7 F/W8tYUPiSmtgBFSUh/NRMhmyZbqKdgdE+8ac5gOl0FPb62wvDGAY+cLApmcxZcjOmrO5O/4W 8g/uyIhaT0b9Ngq34u/5IkYh0gzgqa1qUsp7g4x3QlijK8ISW6TkQDJuBGPiZm+CkexzYwA/R LbWorr/bgWkwIv6p/1Pwa4pCMH8KFUQqH9SB9a9J1Vt8DAg2UIUCLWgMvPeIUn76N9oqMpv4q jqD9aMuB7HGKjMNIW5iZsqrhf2g2fejcvq+PiBJj/4wxDiS6kwdn0thMo3gSwQccMnpXtbrN+ iH3Qx+clAHoxdMQoeSAYt1tyqLKAVny2GlGEp6oedGO7jazLFf009dPf8m1FcFXZDP1JxhMvM bxX+uw==
On Thu, Dec 15, 2022 at 04:48:51PM -0800, Ray Andrews wrote:
>
> On 2022-12-15 16:05, Lawrence Velázquez wrote:
> > How are you creating and populating "main"? Can you provide a test
> > case that the rest of us can actually use?
>
> There's always the chance it doesn't even come to that, some artifact in the
> way the array prints or something. But if you need to see an
> initialization:
>
>
> # nlist(): Initialize 'main' array. 10 elements:
> -----------------------------
> main[window]="main"
> main[list]='List'
> main[lastE]="$#List"
> main[hight]=$(( mainWH - 2 ))
> main[width]=$(( mainWW - 2 ))
> main[bottomE]="$main[hight]"
> main[topE]=1
> main[currentE]=1
> main[offset]=0
> main[active]=1
>
> ... all values assign properly, so where do the uninvited keywords come
> from? As Bart explained, the order of the printout has no regularity, so
> there's no pattern to look for.
Probability of 95% or more that the array gets modified after the
initialisation by some stray code. Put prints all over the place
to find the place where the array gets modified.
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author