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 24644 invoked from network); 16 Dec 2022 23:33:56 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Dec 2022 23:33:56 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1671233637; b=BevTbXGyG+nIdKIDxuEviT9o85a105QR+kg3p2sWQgzn9/GTIAGw7QBYKaQXFuJKMcJpXAiNwT 7hHlA9/M0p3UOgX61eDSY85bVhFeiI/Yaw2k5F9dRzMuAXOSGJI9cpHsqm8VX5PvLoqar27EwN 3iW96knT5rudYaK2zckvZodhBVkckVsnPrC/HiQDw7G3R+2MaGHVmeqYzBLi/m1WS5FmC/xBqi nKPeOa5tHkcyeurCVgozcwfrdTDf1UFHQUS44oKuRKrs2qDqllXi/ghTApxmue0QEciETOoWSY kIVSDH3XNRr0RRtVBcsWF7OLo9PYXSmHKvByxcsK3/nUaw==; 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=1671233637; bh=ouvuPCDr+0LOvBuFbGBaghVHtZvGUUPvDJMsivZ9Pks=; 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=XuONe2PHPnytS3ErbTscvLCra96PvkfulS99cDbCAMIFCePFb7GblJ50raAsflcgwmpygWYBYf 5qm1yeg4cxb7GvIW+ZLbIEP4iSN5tOaWawoKay510V/duFpaD/isxPNgcxIqJUScHrRm4OUwQ0 m+pMgoy9cVXdqaLFoYoV2RSg59f4aPp4GXjHm37rZK/P5IAXO3Rr/z9gAdOaqJVpq6shwU6a2/ fd9dTy+iEVtcecKuW+iSnHIDJb5Ocp+mS3TOA44zbHFFBiSbk1RdAfTc5a4TXzZdKFKRishK2N jG4n8OOBaJZhifMbhdxZXLPk+Up3HZeDVipeXWVj1DtHYw==; 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=mow0hYjt/oAXl3yHJcxbMEWfsKRGXHLTJZ5PWoTwh54=; b=MFLuG3QRBc38pgnnPtZzR7Fe9/ WI0QUSs6Lc0NGYQIeB7TxBgZle2pNVmcQ9R52kD0+8tx/eUiSdd/UixjCvkYPzx29PKLtUhnFQ3qa wZHAnv5qib5g/Jk5x7tWeANRf8LNkh/UWXOGx6LFJ7k14JySSs/sb91BuWntdCXDtwWwJujw/niUV VwqOBRRq7ToEyqMNw361v8ry0ilN+1cwLCRJiPcaakclP+iX/7pN+irq0uivBdQd4AuN9vZOboN3q F9EVZ5WVQ1YrELm/Q6W4FKTR/5GlWD5f1ZFge3lWQMcViCM32MXZw57h+GG+5Birs+6PfR91+c8FZ KiCyAlSQ==; Received: by zero.zsh.org with local id 1p6KDD-000DLj-C0; Fri, 16 Dec 2022 23:33:55 +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]:43130) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1p6KCP-000CfW-PJ; Fri, 16 Dec 2022 23:33:07 +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 <0RN000FW6ANBEAA0@mta02.eastlink.ca> for zsh-users@zsh.org; Fri, 16 Dec 2022 19:33:04 -0400 (AST) Received: from [192.168.0.4] ([24.207.18.108]) by Eastlink with ESMTPSA id 6KCNpFp4yeLAh6KCOpabGk; Fri, 16 Dec 2022 19:33:04 -0400 X-Authority-Analysis: v=2.4 cv=S7gfgqgP c=1 sm=1 tr=0 ts=639d0030 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=KW0gOBaLkYPTUX_wLEgA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeekgddutdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrdegngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: Date: Fri, 16 Dec 2022 15:33:03 -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: <46161d8a-c177-4134-836e-592e5c048887@app.fastmail.com> <902fb047-3435-89a3-e7ea-74e74075c2c6@eastlink.ca> <09d09690-08c8-4499-9011-9c45d7676f52@app.fastmail.com> <81952d4b-3ead-f912-f987-fe9a37dbd256@eastlink.ca> From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28572 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-16 14:15, Bart Schaefer wrote: > > I'd appreciate a pointer to that definition, since apparently my PhD > in Computer Science is from too long ago to have covered it. Ha!  Sometimes hairs need to be split, and Dominik is surely correct that zsh and say C are very different, but to say that zsh isn't a programing language will be a chore to sustain. Daniel: > You mean that you wrote foo[bar] and didn't realize that was > a globbing syntax too? zsh can't disable features because you don't > know them. This stuff is all so fundamental that it couldn't change even if everyone wanted it to.  Disable isn't the word I chose.  But there is something very unfriendly about situations where you're doing something with an array index -- and it obvious at least to oneself that this is a string thing, and then zsh zealously applies filename expansions to it when it has nothing whatsoever to do with files.  I don't mind being clobbered, that's part of learning the shell, still it isn't very intuitive.  Anyway I've learned the protections.   But one can want to do some string globbing and still hope not to have anything to do with filenames.