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 5109 invoked from network); 16 Dec 2022 04:30:12 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Dec 2022 04:30:12 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1671165012; b=LiWIRVnPeVimKhpXvtMcP20eJSoCziVNx/r1VFc6YjeudANiN9dAegIPcII42Xc6p/0al2PRHT TDRl5ccIphZn1NBj70fYiGYRZdEArY+MjL97AlpkfyHesyhZL0l1A8Ipuz5jkdTffqQJHl8Oz9 XRi12on6QrHBzWEuVxf3VygXSsCDbfaoTydnpZVmdEH/zeYXkggKncZ6/SyqPFBOg0iQr9UhMX Nl2i+piCRm8kqv1gSsDgQzuX2KIPyvUbV+GnizfMXv4PmQPs/7pzCdRz9X0eV/MT3rKGJa5TJh wgO7uUob3r/cT6GDfwngicwo6XU0zvgZFMqQTpMM9Uqe7w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; 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=1671165012; bh=sD7V6ZdF3CYB+lILph3jvNAqPhFFtKn5nw7SYv6XPhc=; 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:Cc:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature; b=pzqUwHIwgzjz7XTuMxFFWEuqZ4LRxTH+T1TcDTSvuXXaL6n0B+dJeXhK8RLYlWfqMHa4olOQ/h cGUHnO9j4VsgsGkp49hPfhGYpt5bojbT27PXc1FDBk35zdpUolkH0D5TDEeyQU1PS3beMzA6Dk qU/3ZvgAaReVaQj+byIounfFW+7Eg/s/l5/QYvXCk2fNbVoqoSU8GytKNA04Ja/4lYToPyszoY ax+uIdDUTr87b4Up39j7vfR9wgaqzmfnsnT+rUNBfNW3P29iadFcJh7W2DmiuMioGm9DQvx5K8 BoWEBsvJVIwZHgWyfpa18e9f5CjaAMGahWi4MRZjIF2NVg==; 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:Cc:To:Subject:MIME-version:Date: Message-id:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=pLhxCVI0XT+uCeg8uNJyftMfzaOrQDIkTiJs6iCE0SY=; b=PkPOIrjQoWGpu1mVd/oMyqd2nY 1rrGsdVW3Hm2SUKoI4Mq+wWfzRbPSh7u/190KDveLDfytJ3mcHmQYsxj2AM0EJUPHN8IUECSmFXzc 0Ssr/ISwZ/ZR4O+nnO1pEz61O4BEs6Ic7ia18AFZ4fJbTxkJIEpv6TjFcIvoYybaDh31oPSoa4yOh +9rRnvHHUyU6OAFNKVGBhHe35goDcmi7Q1gHoX8ZHUu1eBy9fNkFgS6TJTGtREr8Zasgd45YvkFBl U7nDkQgxIwn0r/xaiDsYtNQEFtnbOvqFYXExMnOE7i+EsoHKMSM6CLDQKrWl7j/CRhxi9pzKVl3bd BMNp1ajg==; Received: by zero.zsh.org with local id 1p62MN-000AEg-T8; Fri, 16 Dec 2022 04:30:11 +0000 Authentication-Results: zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none Received: from mta02.eastlink.ca ([24.224.136.13]:51523) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1p629P-0007wv-Vy; Fri, 16 Dec 2022 04:16:48 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta02.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RMY001EXU9O81C0@mta02.eastlink.ca> for zsh-users@zsh.org; Fri, 16 Dec 2022 00:16:46 -0400 (AST) Received: from [192.168.0.4] ([24.207.18.108]) by Eastlink with ESMTPSA id 629OpDOTKeLAh629Opa42E; Fri, 16 Dec 2022 00:16:46 -0400 X-Authority-Analysis: v=2.4 cv=S7gfgqgP c=1 sm=1 tr=0 ts=639bf12e a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=Y-tmc6WuCkaMLsQYOmkA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeigdeiiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepveehteeivdeiffffgefhueeulefflefhkeefheekffetfeelteelheekheetjeelnecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrgegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopeefpdhrtghpthhtohepreerpdhrtghpthhtoheplhgrrhhrhihvseiishhhrdhorhhgpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: Date: Thu, 15 Dec 2022 20:16:46 -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: =?UTF-8?Q?Lawrence_Vel=c3=a1zquez?= Cc: zsh-users@zsh.org References: <0c2b1f8f-35bb-cd52-3d22-0964a73945b2@eastlink.ca> <46161d8a-c177-4134-836e-592e5c048887@app.fastmail.com> From: Ray Andrews In-reply-to: <46161d8a-c177-4134-836e-592e5c048887@app.fastmail.com> Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28552 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 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. > >