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 9944 invoked from network); 16 Dec 2022 00:50:08 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Dec 2022 00:50:08 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1671151808; b=fAdPqmeGQtEXRy6RiY7LCivocCH5sgixeebF7B4psyGgGZfR6djaaUTcZrbYjohm3p1480EsuU FTHrX+a8oyn0oGNtOROrHiPbg3QzxuN75tg9/EOVxXB78J3lC1MkEDDIJaKvrgpD2+tXql/cFw WGCEcIZBfL4cFHKRSi6ELyVQbfLAte/AigTdUuNsQXAu/qh3IImktM6/8jJaVNeOuPfk2yR/cx bT4kU6wl0EUqmR2VGk6vPvv4kAIhVmmvqw/aKZBZb6DYk87verTqjktmGEN0GnCsxw0u74Wn2V nGHwgjujEEDIStSx0CNbQuJ67u9G/QUhgpOxnQC+Wv/G6w==; 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=1671151808; bh=RobtNG6piUQHxze5Dmm2ulyqIW5xMBVZXxtWqzmvz7g=; 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=ir6vB4wSoy46UIMKNJtirqqispdaMJbkui0YoRB+VJWZT6HMEEFmHxlliMp3yyjY0kNL/NTSSh L0nOeru7NJBJ5FA++Zo7kDk29jZWHdaZfklzpFb9crNWfrXfECqCsrwya7e331dNd1Qvh30dYi lfj/VXGblanAdc1YXzIyOOAopi0FH9rb4stDj64qEc7lnvWvor/wLzfV7pJyQTUzVvfid8YW/V I0SkygGMH28P3qAgtFVxSGIz8Wm7bKJimyi8ndyBDpMTUdRfH9OgaYt1BNcswUjaHqDWQCqEWA aXifW3RxL90UPo1b+iB2sGZhiXqiAZMwsvFP8+qJ1e3MAQ==; 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=chTzhn54zgnq+p+SI7aVR/oYQtSJnt1R4Z/TTTFhW9E=; b=pGuxXwHWg8BLGlrirsCGCte0F4 wYT/kiLDIjR+Kd0FbSR2U/SBvNUXkbd3mTk3QckMDc9w6VO2yPfCiqKIkYXxvcD93W0xcnXGNYpzQ 66Hz8mcmiD5lAtBkVoIzMcsHoFjOXqUQzIlf7Ml6swf25JOlA6HzbN8km87dCiyTUJOOXDYHH01ag NqDJvdNl2gsv9ZNwq4OwgJHv5Hb3jDzHsTvszlX9ath7tFo3UNs0ycns0toJ9qYCXzxwRBz1gkNvu KVmdT3EtLG4DrdF4nGylPkxzdrCC2xVVrjvw+mXLaKxwSz88vkIa2XGNVdDzId8Lu//WqDKyNamUe l2LaExTw==; Received: by zero.zsh.org with local id 1p5yvP-000I3X-Gp; Fri, 16 Dec 2022 00:50:07 +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]:32953) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1p5yuI-000HMQ-D2; Fri, 16 Dec 2022 00:48:58 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta04.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RMY007SXKLT07R0@mta04.eastlink.ca> for zsh-users@zsh.org; Thu, 15 Dec 2022 20:48:57 -0400 (AST) Received: from [192.168.0.4] ([24.207.18.108]) by Eastlink with ESMTPSA id 5yuCpfDvrEN8v5yuCpjyxN; Thu, 15 Dec 2022 20:48:52 -0400 X-Authority-Analysis: v=2.4 cv=IPDESCjG c=1 sm=1 tr=0 ts=639bc074 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=kXkM3ybf_m5rRR15uLAA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeigddvhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrdegngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <0c2b1f8f-35bb-cd52-3d22-0964a73945b2@eastlink.ca> Date: Thu, 15 Dec 2022 16:48:51 -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: From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28541 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 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.