From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26011 invoked from network); 16 Dec 2022 02:57:16 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Dec 2022 02:57:16 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1671159436; b=lOQY4zl+CAU8k/Dw3qqcHBisz08/fzQFRhDxspMdYr0KXSoQepg5y04DkOYScKXiqDg/LCSH2X duBqr49yBwiHF9TiH6y5SkohQe6RW6mLqkohon/b1ipmKs1VJferCjRg3bWEs7sEKXUg9wY0Th ltcwzYF7LQPQEI2E7NCzd5/zc0PtKdkqmo61m02qLMlM250b4kpw5DAHKZi9XyINrftGC5Ingp 8qK2cJGSLIP7S/k5NLydmBMuLpKjwMMGMrYW/j5L3+x7Da8UZ79qS4FtZIeKz82APH5nXiNY7N hcCcdf+g46AiMeAAsPkb5Egbs8+Y+8AuYfuA4q4ejbrNNQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1671159436; bh=hCtmJmhiWnoR3JRg9fn8znZuFEOL868BFRytpN6oN2Q=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature; b=jI6mbR/rqQ6wrHYH8eUIGV/hxv5d69PCKimtldMss6t9f7hccLwBPNJP9DjDZjVm1+6ZaCsBmi KqygpEvAznWnutQFNv4V8SJUCxBFZFQnfHDF2bSBRSTQrxJ6IMqFDTlItLjo0SpTQuKlnTYiSq a4Hh1QbNrxrBH3YyvXlGfOo9+49XAusw6rwYhPkMS4wJ1Tg55/T5mUEpx0ciWBogu2HaKWUT1M xiJ92wOY2sXxwWai1tUam9/39bngINQ6aQnJvWQJvnnXHRFYDkAx5rHbJKN8Wbu0vUR04QozPn uRodRjMu9okxYQw2h33AeSRet8xNYI+a1WnyiFukPF7D5Q==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-transfer-encoding: Content-type:In-reply-to:From:References:To:Subject:MIME-version:Date: Message-id:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ZK330WbPNRMaGQs1yTI5s6Aq5DvR98CllG1RvnFz35M=; b=FGxaVm/X5aptuKxTF5sKQXvMNQ gfPB0/Tcjk1dp1nefw77UfapUHIHSBFa4FFLI0+7YjMjCmpgseS6ZcboRiqWn5xt0T6A+DHFOMsUl DTR1loCCRA6QAkiuYDiaNk4eV1pgv966e9emZVN2Ccz+4Hi7Ibr93D6MQVSeN4w/IRORpUNOpTm3i +D+qeuvFH2ZR0AOuhZxRP9CSg4dRNUFs3llR1TMPx2esiaXl4sdhrNxOSRjjP9fxJp5sJr1PIXijv jE3hY3fvEAnUC1zSBSX5w3NeVjY9McLigYUUIBOQI0O2ZnIA4p29GEqxUvcPVj6ZNIJoPJucaP5nd v2xcTPGw==; Received: by zero.zsh.org with local id 1p60uQ-000PQs-Lh; Fri, 16 Dec 2022 02:57:14 +0000 Authentication-Results: zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none Received: from mta04.eastlink.ca ([24.224.136.10]:55413) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1p60tc-000Oj7-KI; Fri, 16 Dec 2022 02:56:25 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta04.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RMY0078XOVI07U0@mta04.eastlink.ca> for zsh-users@zsh.org; Thu, 15 Dec 2022 22:56:23 -0400 (AST) Received: from [192.168.0.4] ([24.207.18.108]) by Eastlink with ESMTPSA id 60tapDEGFeLAh60tbpa2q0; Thu, 15 Dec 2022 22:56:23 -0400 X-Authority-Analysis: v=2.4 cv=S7gfgqgP c=1 sm=1 tr=0 ts=639bde57 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=Q3_kVXQMT8qly3EeXDkA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeigdehtdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrdegngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: Date: Thu, 15 Dec 2022 18:56:22 -0800 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: uninvited members of associative array Content-language: en-US To: zsh-users@zsh.org References: <0c2b1f8f-35bb-cd52-3d22-0964a73945b2@eastlink.ca> From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28545 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On 2022-12-15 18:09, Dominik Vogt wrote: > 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. Nope, I showed the output directly after the init.  If something goes wrong, it goes wrong during the init itself. Lawrence: > It makes no sense to question the code before verifying that your data isn't garbage. All the named keywords have exactly correct data, there's nothing not to like as far as that. Dunno, it wouldn't be the first time that there was some silly issue in the printout, no real problem at all, so my first question assumed nothing. My ignorance remains a deep well tho slowly getting better. > Still not seeing a problem. I think I'm on the scent, the array is global. If I zero it before all the assignments (they're just numbers, no need to show the full genealogy of them), then the interlopers disappear. So now the question is where the bogus elements come from. They aren't actually assigned anywhere, that's for sure. 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?