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 24599 invoked from network); 11 Dec 2022 22:38:21 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 Dec 2022 22:38:21 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1670798301; b=ZmsEFSwomIn3pAtMCSEP1CHmJFXMNCih47yVs/XlH5Dcct4QRk051f3Ld0xmsx7STKH0bdsAQU MabJzhQzJ1ZNfTkR8eqYYVVXHMk4xP610sVDfBT3FaPQ0l1eOCb4ICQ1PuGPQ2ynrYhY3esQEA n/R3OfSD13cRh9nJkQ8hBMDrDXiLakdwo0FNN5svAtbMyHQf2KmbCxIoXFYuQX+aWG0Ns/nkqH K72H4k2sWutx99mptoWGxeF/TS3yH4JL4l1Jv7jyBtDpMg77q/0HiGNK1AuvUo9oY73AvBY+bw GVKy3V8aoiFnMl7J+/h6rBx++DPz4EW85JQthOZYTnt9gA==; 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=1670798301; bh=JENxjzyBC8xr4EuhrNmicVsm9lPOi8153SKyYRCfC38=; 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=P/DcCQzk/7Ba/O0vS6Ibpa4vQC9f3vnaRurVis7wwepMLoIvfkmVxIhC6yPmJLJsIymM//W08u XhAenVe8kgUHDKiWUCFhveh3h0lq1Q+vrpPgF9Wh5YyLRnE2Qdx/yOHqGTDfdYUOFU7ZvROeZ6 fSJxT/D+jp6rGeU2OUJQ9EMjkJHfy9ZIbP23kY9EJkgCmDlLgIHC8gXmhYiDykDqkPeAkQITiH JX7dIAOscxuQsYiyisYHaOJGoYyNAZgM9fE+2BhjOeXW4hPbYg2pxaq7uzre3AwqxlDVUWysCX owA+Jo9dPTCHbF63RK2QwXLgOUvWnVyN9g9H6s6sGnGsLg==; 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=O/5TJBO3nIgdrbM7RpyJ1xNPVXP2F32xXqKxRLfAoNY=; b=UeUG49NYsKyKFqxLeYDXzPBkcH FxYMBZZCjW3Ew8IgyYeVREzKh/qrag3xWEsCo77PlIaW4g7IeGx3aarQFTz2hH5fAAJMQlMBb2klM YnRI5r4lmLDNuWxNP3Sz2eyg6BEFteNOMYa51dpp7fHxe3PRmiCQv2Zw7mkZ7rSde6lviCqf/W2Um WeXnrSzD6GwKZT9SfW6fYmipWuljumr7X/bCbmwrYduMjwhoPrqJ07ym+mevxX+0YPJ/8nZsaEjKn OziqaE0phAEJuA0CE70/ZTJhZi2huIUlTKDBDSR6PJRrR/cGrNrgIuf1st5E2F7d2xmBSSIWXjN7X vVA7seig==; Received: by zero.zsh.org with local id 1p4Uxg-000Dj6-LF; Sun, 11 Dec 2022 22:38:20 +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]:53773) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1p4Uwy-000D2T-VO; Sun, 11 Dec 2022 22:37:37 +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 <0RMQ001UFZ06X2J0@mta04.eastlink.ca> for zsh-users@zsh.org; Sun, 11 Dec 2022 18:37:35 -0400 (AST) Received: from [192.168.0.4] ([24.207.18.108]) by Eastlink with ESMTPSA id 4UwwpR3FeEN8v4Uwxph2Zt; Sun, 11 Dec 2022 18:37:35 -0400 X-Authority-Analysis: v=2.4 cv=IPDESCjG c=1 sm=1 tr=0 ts=63965baf a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=PPjauvCMOFenixP1FZ8A:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeigdduieegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepiedtjeffvefgtdehgefgteekueeggeeitedutddvvdduteetffdvveelgfeukedunecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrgegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <32f371e2-bdf4-1f88-3c8b-ed1e6d564b63@eastlink.ca> Date: Sun, 11 Dec 2022 14:37:34 -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: associative array questions 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: 28520 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-11 13:41, Bart Schaefer wrote: > > Parsing has to happen first, otherwise it's not possible to find what > to substitute ... I should say that I thought substitution happened before assignment.  But if I could watch how the wheels actually spin no doubt some of my naive assumptions would vanish. > > typeset -g -- "${aarray}[second]"='tea for two' > I had no idea typeset could be used like that!  It  has the intuitive directness that I was hunting for.