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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2415 invoked from network); 15 Dec 2022 23:49:09 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 15 Dec 2022 23:49:09 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1671148149; b=XG6gUyj9E98gzxcAZqolms0iq9PK3H9r7vcb2xlho1vYQa2C1SEwvw4rJq3+Kh6AW5ZqpjDFss wa3J/5VhRg6rNhrmTnErlTz+ETXo50D/eE1Q/UEbtCvCfuOLBb+qcYveKiXGJATJzrq1sSdrYa dvpA10umx+VDiXSPFDmwL2wlzAzrSpb7r9NKpvf1TeM9OqvQVqd4BXGan9LIqk9QYRyZ1Cu2eo CbHtxPaYKH+z6rSrJkd0ZHcqJFRBfgLsTrnCU7Y6S4MzbNyL3zFgUMA5JW6J2ZmSJGh4JPMJDD UAfNuPye6NjhkyyXL50aETUfrENyFAzgUW5R2efdxVvICA==; 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=1671148149; bh=w4iUS5KaoapufMJCX16l3dnye6l992bsLemmZwUODnI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Subject:From:To:MIME-Version:Date:Message-ID:Content-Type: DKIM-Signature; b=ppVEMTxqGHcoCWtzXzD/H1KtHY3PB2mWY+TUaEGhdNyhHvYFoYSp1AY+tXqvzszvF8pkQAbMV7 terIt/C316i9HucRw+1TD47Mi/lisqUqWQhS4STu3HXNmYQkALIXx1w5ohoePyWxNLAPQbNS5l 2bPazYpz+q0zJHyvcKjhdVv0Lf+MsQ34qLc94LDAAtsGPPtajqX8HplCFFZqOZ8Gs1g5y9ZNdz +p22vKKeDejccSS79bVCEg7Lmy0iuRqeXOSLun4Qki5z9jbsk0m4y0drdU6PA7+TrYv6oDJ3jG mp/32ivdNUlkCaCbXqYSnXXbPUMOlGy6B3zTICz7lekhiA==; 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:Subject:From:To:MIME-version:Date: Message-id:Content-type:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=mif4f/YTUbnJPnW1Gffeg+0QsXFB5t0jTC/8nTBpAqM=; b=nTS//nsx24Vm3z0TSiNr0CKBKM VLsrzBGffCjMwQkrpBv/8Vx7OU558Ft70tA7yt9ae0Xs9TJ4yVhRguqeYFKpPArBuEj448GWJJHTW ADUWj8vNOxNEYjkBj9QJG1Ij6lVwtxGTMH16IGh5XoRo8azE/sDi3v1gT0S9q0Ty6wdTVnFF4on+I WV0wutTmWKgdzNnJtcQ7vp+I9A4no7M5m5UaY+zbU9ILRtGEnMVfxedYhplfnx6hh9LJCShmMzKQ4 9pz9ghFtZu3KE++/88ffRtoycf62YND149Kb/G3iWLOLCPa29bFzaOhJaGvfgpSnF5BqtaCYWZboY 7GuDVIDQ==; Received: by zero.zsh.org with local id 1p5xyN-000ESB-0u; Thu, 15 Dec 2022 23:49: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]:47956) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1p5xxb-000Dk9-9E; Thu, 15 Dec 2022 23:48:19 +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 <0RMY007HEG6J07O0@mta04.eastlink.ca> for zsh-users@zsh.org; Thu, 15 Dec 2022 19:48:17 -0400 (AST) Received: from [192.168.0.4] ([24.207.18.108]) by Eastlink with ESMTPSA id 5xxZpf56pEN8v5xxZpjxVO; Thu, 15 Dec 2022 19:48:17 -0400 X-Authority-Analysis: v=2.4 cv=IPDESCjG c=1 sm=1 tr=0 ts=639bb241 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=Zt_25RURBTZNmW3QtkMA:9 a=QEXdDO2ut3YA:10 a=f1COLju1wMtHmNrMe2MA:9 a=K06FIVwpOESOgYG-:21 a=_W_S_7VecoQA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeigdduvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurheptgfkffggfgfvhffusegrtderredtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeejjeffgeelkeekheeljedvkeevhfdtieevudeiudevkeevvefhkedvheegueelkeenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrdegngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: -100 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------oq2Vb9jPC7vj0eUI0dXtRS8Y" Message-id: Date: Thu, 15 Dec 2022 15:48:16 -0800 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Content-language: en-US To: Zsh Users From: Ray Andrews Subject: uninvited members of associative array X-Seq: 28539 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: This is a multi-part message in MIME format. --------------oq2Vb9jPC7vj0eUI0dXtRS8Y Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit I just noticed something.  My big array has ten named elements but if I print it: printf  "%-20s %s\n" ${(kv)main} > /dev/pts/2 width               90 window            main offset               0 topE                 1 active              1 90                    main bottomE           48 lastE                196 hight                48 196                  48 List                  1 0                     1 list                  List 1                     48 currentE          1 ... it all works, however 'elements' 90, 196, 0 and 1 seem to have created themselves, I didn't make them.  They seem to be ghosts who's names are other element's values, eg: '90' is the value proper value of 'width' and that element holds the value 'main' which is the proper value of 'window' and so on.  It doesn't seem to break anything, however it's a bit strange when you print it out.  Something unintended in the printf? --------------oq2Vb9jPC7vj0eUI0dXtRS8Y Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

I just noticed something.  My big array has ten named elements but if I print it:

printf  "%-20s %s\n" ${(kv)main} > /dev/pts/2

width               90
window            main
offset               0
topE                 1
active              1
90                    main
bottomE           48
lastE                196
hight                48
196                  48
List                  1
0                     1
list                  List
1                     48
currentE          1

... it all works, however 'elements' 90, 196, 0 and 1 seem to have created themselves, I didn't make them.  They seem to be ghosts who's names are other element's values, eg: '90' is the value proper value of 'width' and that element holds the value 'main' which is the proper value of 'window' and so on.  It doesn't seem to break anything, however it's a bit strange when you print it out.  Something unintended in the printf?



--------------oq2Vb9jPC7vj0eUI0dXtRS8Y--