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, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31796 invoked from network); 16 Dec 2022 16:31:55 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Dec 2022 16:31:55 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1671208315; b=UXz4zzWeIiwd/KW4vY1f2uat0yMql/axSp0kA0kIiqL3a/XbnGK+PT4BDTiu51lUfKSddQfP99 Cw9WU3sLJH1YuCyNYzsfvEcyesjYY95F7wsJdpVb4QG5BnVanCBU/5SXwJ1ye5aGguTJf5adtD CI/VqpuUbgeNuDf0Ib9CBC4h9YpRCUXomza7fyYjNxPkrxXkprpqmt9/2ZN97XKlYlPPLlpZNz oWxdrC/IOe4mMS74sGJH8G7pjfZiXV4J47/rHinWMQXLvwu2eWoK82QsARvPFQrcHxGTBfijGj 08+AY+7l08lDsAvh5iSwoeK9NkrJOoqJ0MAHUZn+jiRojw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (wout5-smtp.messagingengine.com) smtp.remote-ip=64.147.123.21; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1671208315; bh=kVCBW9TMzQ6pBs1JFY1LDjUUHyfZods/4vU96+b4AGc=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Subject:To:From:Date: References:In-Reply-To:Message-ID:MIME-Version:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=WSriEJF6fP66o3X7scZHF9o7Hx94Jy6F9LPlHbpfwRmcP7+oCoL2YACWRabABq2azn50b5uHAB m/GxhzwYAxT9yznT0IKYRJ6DEcBxQdmbtPQCqI4GdfEVa6xSrrQne7TEj4LbvsqSDdj17fcdVI xYA4mDvlXrAs4NQpt7HwXwGPuK3GzgujnhTFnQYMinPMi8yG/N9hPNdwGGJTWuy2sjzkk+8hfn pFFvyj7wLVOWOPX85I9xwjgPUgMokZ9sSM6ttMiQmFXdt6bu4CFHvIiz7CLCSoo3l7znEmc/KF 80oLYuliF0telO4si0683b80bGrYQM/9mj7PnhAh3Cc7uA==; 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:Subject:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Rb6i8nhuvH2c2GAppJLsJBZa2zevPz0JbueKQPiCJmI=; b=e82yHAmMRgduJKjuXCat1qcjih +SDTQG+poOEpXSwFFboj2VcwGwWqXOCSyXfrEEAs5OVR99PdmgmSLXa50wkkzQW2aiVg4ir2eqevs u6YnPWQPmsr1SY1fLswcz9wC3jwK+CqNjpTHz2px1Y/plXmoN2VyvJ0LxxPJ1bPm2v+vYLoSAHjXe IifbrPGCRdWImOdXBQN0RqkR1sTC5Qy0Z/RjpJRB8IN31tDRDs4QLu5Jmz+0M/AzTbKNr1vXaMVBd tGgTn4Nj7ygMDgYtEtb98zmZeP2wKtoOEOXjoPRwoaLsfb99svzvR/IezonFm2HOJ91DdVYbaEzqM RJ8pOciA==; Received: by zero.zsh.org with local id 1p6Dco-000C8q-2g; Fri, 16 Dec 2022 16:31:54 +0000 Authentication-Results: zsh.org; iprev=pass (wout5-smtp.messagingengine.com) smtp.remote-ip=64.147.123.21; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:33395) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1p6Dba-000BVe-Ej; Fri, 16 Dec 2022 16:30:40 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 52B5E3200947 for ; Fri, 16 Dec 2022 11:30:35 -0500 (EST) Received: from imap46 ([10.202.2.96]) by compute4.internal (MEProxy); Fri, 16 Dec 2022 11:30:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm1; t=1671208234; x=1671294634; bh=Rb6i8nhuvH2c2GAppJLsJBZa2 zevPz0JbueKQPiCJmI=; b=ECJWJmoqeJ7vHI81rXYkTZz9K10bMGwXZfAs8fxCy WYlEOD82lJYnZaqlkNH7ijoQ2vbQ3vFcNPPiPZgQ/wxfiiIRyV5JQzKMa4wwuW6/ 0ccNbsREsexojIJjOrwiFBnTVV1t/ZYX1ImSmA3gqZQA2IopmNaPrvxsLBFP6Y8u 2PdEzCtKnnU66gZQRT8OfZR4YDaAypiVmSr7PHoXktAwJCODOYVgdKCzhqrL5Ckj FTHcoVM3qe9Vs6/qo/QQTXryeT3FxTrLx78pDk38zRAk8m7GmS3i0m3Gkewa2zp2 4ScQP6ETGzXxkgAAbEyRTAIEKbvGocuJjIarMdlu1FFWA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1671208234; x=1671294634; bh=R b6i8nhuvH2c2GAppJLsJBZa2zevPz0JbueKQPiCJmI=; b=ETvLPFz/PMEe22xwL cGsTZ9a4O3WHSuvM/PMn6Pjldn9md7EI+VKYmG5tDCpAevoILP8rJsQ0Vl6YNMJ3 oMvQgP1V5rP5A841eqohyJJfa0VCTY6aKvph2BE2hXC5pb/JELJ3D0AUWg7SH0C1 p+2dTV8ae6F3befojGWz/FcBq8GAl2cMCPI+KF8mK+EA670UYZEwznaJi0chExxR Jg7zu9pgK27Qd3s/wAyYM+5x6XZ0KfXivyDAbBZ1Wk3nWv3qrhOxfMsU13PxnCOo oxjnHri8dmwPYQuAEVh6GRGor0ehB0bheuYj8sqHCPeKR98NLr29hmlmZNHucAHZ 1VFBw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeejgdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgfgsehtqh ertderreejnecuhfhrohhmpedfffgrnhhivghlucfuhhgrhhgrfhdfuceougdrshesuggr nhhivghlrdhshhgrhhgrfhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeefhfekfeevie elleehiefftdekudejledvhfdtjedtgeegvdeuffefleehhfdvgfenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegurdhssegurghnihgvlhdrsh hhrghhrghfrdhnrghmvg X-ME-Proxy: Feedback-ID: i425e4195:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 87C4A2A20085; Fri, 16 Dec 2022 11:30:34 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1185-g841157300a-fm-20221208.002-g84115730 Mime-Version: 1.0 Message-Id: <09d09690-08c8-4499-9011-9c45d7676f52@app.fastmail.com> In-Reply-To: <902fb047-3435-89a3-e7ea-74e74075c2c6@eastlink.ca> References: <0c2b1f8f-35bb-cd52-3d22-0964a73945b2@eastlink.ca> <46161d8a-c177-4134-836e-592e5c048887@app.fastmail.com> <902fb047-3435-89a3-e7ea-74e74075c2c6@eastlink.ca> Date: Fri, 16 Dec 2022 16:30:14 +0000 From: "Daniel Shahaf" To: zsh-users@zsh.org Subject: Re: uninvited members of associative array Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 28560 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: Ray Andrews wrote on Fri, 16 Dec 2022 14:13 +00:00: > ... this is exactly the sort of thing I was talking to Lawrence about = --=20 > not really a hard error, just some printout issue.=C2=A0 I'll pursue t= hat.=C2=A0 I=20 > (think I) understand that AAs are very fragile creatures and as you=20 > demonstrate, easily confused.=C2=A0 I'll bag it. I think the better takeaway here is that the "default" (barest) syntax isn't always the right one. There's any number of examples of this: - Variable expansions, =C2=AB${foo}=C2=BB. Scalars need to be quoted; a= rrays need to be quoted and @'d; assocs need to be quoted, @'d, and (kv)'d. The actual meaning of unquoted =C2=AB${foo}=C2=BB=C2=A0=E2=80=94 expand to= all non-null values=C2=A0=E2=80=94 isn't commonly needed. - =C2=ABls *.txt=C2=BB without a =C2=AB--=C2=BB guard. - =C2=ABprint -- $foo=C2=BB without =C2=AB-r=C2=BB.