zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: "Lawrence Velázquez" <larryv@zsh.org>
Cc: zsh-users@zsh.org
Subject: Re: uninvited members of associative array
Date: Thu, 15 Dec 2022 20:16:46 -0800	[thread overview]
Message-ID: <cf00d14b-389f-2de2-3a9a-91fec333ebab@eastlink.ca> (raw)
In-Reply-To: <46161d8a-c177-4134-836e-592e5c048887@app.fastmail.com>


On 2022-12-15 19:21, Lawrence Velázquez wrote:
> Or before.
Exactly the case here.  This code has many global variables and ... 
well, no need to say more.
> Wrong.  It assumed that "main" contained the expected data and
> nothing extra.  I've already asked you to use "typeset -p" to verify
> its actual contents, but you still haven't.

No need, zeroing the array solves the issue.  Mind, I suppose I could do 
a forensic on that, and figure out when and where the corruption occurs, 
and then, of course I'll use typeset -p and let you know.  Right now I 
have more pressing issues.


>> Variable crosstalk?  How does an
>> associative array get corrupted?  Let me root around a bit ...
>> hey ... you don't suppose a zcurses crash might do it?
> It's far more likely that you've been using a preexisting array or
> are inadvertently assigning to "main" from a function or your
> dotfiles or another location you haven't considered than that you've
> encountered a bug in zsh or zcurses.

Sure, it was just a thought.  Yes, probably some crosstalk.  I think 
I'll rename the array in any case.  'main' is not likely to be unique 
and besides one of the zcurses windows in named 'main' too.  Very 
unsanitary.  Esp. given zsh's indiscipline with variables.  I know, all 
the shells are the same, but my C training makes me cringe at it to this 
day.


>
>


  reply	other threads:[~2022-12-16  4:30 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-15 23:48 Ray Andrews
2022-12-16  0:05 ` Lawrence Velázquez
2022-12-16  0:48   ` Ray Andrews
2022-12-16  1:29     ` Lawrence Velázquez
2022-12-16  2:09     ` Dominik Vogt
2022-12-16  2:56       ` Ray Andrews
2022-12-16  3:21         ` Lawrence Velázquez
2022-12-16  4:16           ` Ray Andrews [this message]
2022-12-16 10:05             ` Dominik Vogt
2022-12-16 14:13               ` Ray Andrews
2022-12-16 15:19                 ` Dominik Vogt
2022-12-16 19:14                   ` Ray Andrews
2022-12-16 16:30                 ` Daniel Shahaf
2022-12-16 18:21                   ` Ray Andrews
2022-12-16 19:04                     ` Dominik Vogt
2022-12-16 20:10                       ` Ray Andrews
2022-12-16 21:15                         ` Dominik Vogt
2022-12-16 21:33                           ` Bart Schaefer
2022-12-16 21:59                             ` Dominik Vogt
2022-12-16 22:15                               ` Bart Schaefer
2022-12-16 23:33                                 ` Ray Andrews
2022-12-17 12:47                                   ` Pier Paolo Grassi
2022-12-17 17:32                                     ` Ray Andrews
2022-12-17 18:10                                 ` Ray Andrews
2022-12-17 18:19                                   ` Roman Perepelitsa
2022-12-17 20:31                                     ` Ray Andrews
2022-12-17 20:49                                       ` Bart Schaefer
2022-12-17 21:07                                       ` Lawrence Velázquez
2022-12-17 21:52                                         ` Ray Andrews
2022-12-17 22:10                                           ` Bart Schaefer
2022-12-17 23:41                                             ` Daniel Shahaf
2022-12-18  0:15                                             ` Ray Andrews
2022-12-18  0:25                                               ` Daniel Shahaf
2022-12-18  2:13                                                 ` Ray Andrews
2022-12-18 20:12                                                   ` Daniel Shahaf
2022-12-18 20:26                                                     ` Bart Schaefer
2022-12-18 20:41                                                       ` Ray Andrews
2022-12-18  3:44                                               ` Lawrence Velázquez
2022-12-17 23:25                                         ` Daniel Shahaf
2022-12-16 21:33                           ` Ray Andrews
2022-12-16 20:25                       ` Daniel Shahaf
2022-12-16 21:43                         ` Dominik Vogt
2022-12-16  3:20 ` Bart Schaefer
2022-12-16  4:15   ` Ray Andrews
2022-12-16  8:12 ` Roman Perepelitsa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cf00d14b-389f-2de2-3a9a-91fec333ebab@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --cc=larryv@zsh.org \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).