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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12945 invoked from network); 18 Jul 2021 22:46:51 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 Jul 2021 22:46:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Subject:To:From:Date: References:In-Reply-To:Message-Id:Mime-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=hEKMUwFim8ASXo7uZacEeCqP/xrXsYOeVYtfImRne1w=; b=f65MGcblsjMzSBm9ua5PLJSu45 WtFwg24lKc+zfO0ZDGWTI/el5O1aSxbv8ByRgm1aOEhX2ZQLfveqSZjKiWEQWtERKwI3qFEIO68oa pR8Q7rd+esdVB82WXYtS29KOcKOi+TgdAICLTePPHGiE1HoJ/XVno7zdpEJKlEtfKyxZ7ZoMePYpZ RLFSOsFIdSNE3OJUByLrtvlaVMQt8DDklyP9YfHo+wj+uX/JcjPB80blzx5Bpd1H5nrrkbNRpUlb7 huSAjS4FpKL9NDl51+WHlFa7tO5T4sKk6ZRE2PG4SUMSmUov9Sfft80B6qY0vTvT8nhCOEDwvAiKm YmMnc8dw==; Received: from authenticated user by zero.zsh.org with local id 1m5FYg-000DOH-HE; Sun, 18 Jul 2021 22:46:50 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1m5FYU-000D7o-Oq; Sun, 18 Jul 2021 22:46:39 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 9E58327C0054 for ; Sun, 18 Jul 2021 18:46:37 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute3.internal (MEProxy); Sun, 18 Jul 2021 18:46:37 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdelgddutdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesthdtre dtreerjeenucfhrhhomhepnfgrfihrvghntggvpgggvghljoiiqhhuvgiiuceolhgrrhhr hihvseiishhhrdhorhhgqeenucggtffrrghtthgvrhhnpeeikeejveeludegfeeigfeule fggfdttdegheevvdehvdeigfehvdffuedvvdeuheenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihvhdomhgvshhmthhprghuthhhph gvrhhsohhnrghlihhthidqudduhedukeejjedtgedqudduledvjeefkeehqdhlrghrrhih vheppeiishhhrdhorhhgsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3316BA03996; Sun, 18 Jul 2021 18:46:37 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-533-gf73e617b8a-fm-20210712.002-gf73e617b Mime-Version: 1.0 Message-Id: <2b3b638c-a140-4307-80c1-14dbd4f256b2@www.fastmail.com> In-Reply-To: <28083-1625781916.764025@UCY6.UOU6.q2aH> References: <20210705051149.12522-1-llua@gmx.com> <28083-1625781916.764025@UCY6.UOU6.q2aH> Date: Sun, 18 Jul 2021 18:46:16 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: zsh-workers@zsh.org Subject: =?UTF-8?Q?Re:_[PATCH]_=5Fmodutils:_fix_the_testing_of_-R/--resolve-alias?= =?UTF-8?Q?_options_as_it_is_now,_it_is_always_true_due_to_how_$+var_wor?= =?UTF-8?Q?ks_with_the_k_subscript_flag_on_associative_arrays?= Content-Type: text/plain X-Seq: 49173 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Thu, Jul 8, 2021, at 6:05 PM, Oliver Kiddle wrote: > On 5 Jul, Eric Cook wrote: > > % typeset -A foo=(bar baz); print -- ${foo[(k)-R]} - ${+foo[(k)-R]}; typeset -A foo=(bar bar -R qux); print -- ${foo[(k)-R]} - ${+foo[(k)-R]} > > That change makes sense. Searching the wider code shows many cases where > we've done similar tests with opt_args[(i)...|...|... but none with > (k). Subscript flags can be easy to make mistakes with. > > Oliver ping for further feedback and/or committing -- vq