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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10748 invoked from network); 1 Feb 2023 01:34:49 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Feb 2023 01:34:49 -0000 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:Cc:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=F9Kzu6/mbg2kbz8YjUwrmBfXLblUwcJ5LG8W8amctfk=; b=aPkeOeWAICXe/idlEXDUgP49Nn riZh1Tci6o/LFyOejJvnGi7yRG359FdbnLckiEmCkaMvQBdPLwwXlQ7xjjGTpqZ0F+95+W/VA7SrK a7NWsyUOf1/Rm6eEBt4Vw/mMJIW5I9rgozODmw+4m7LY4MVLHErCt11rN3p0/o9GYEJSJACZ59kjh VH2TGFr3a6uef0r3Cm44BXwlynnw0+OBZsI4Ogp1D3v86htDzDRpJ++vCJAhye4pfJ/m1AZi99pO4 aAAlMVrPlGfnse7XX2cLwBrfNkiXLHsg0+hJiIOklsPPbmOs31pY5zutvqOK7P3Nule7j+MJuvnDp w7l2Jv6A==; Received: by zero.zsh.org with local id 1pN21Q-000A0I-Om; Wed, 01 Feb 2023 01:34:48 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1pN20s-0009Lf-VA; Wed, 01 Feb 2023 01:34:15 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id EABFB27C0054; Tue, 31 Jan 2023 20:34:11 -0500 (EST) Received: from imap48 ([10.202.2.98]) by compute1.internal (MEProxy); Tue, 31 Jan 2023 20:34:11 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudefhedgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepnfgr fihrvghntggvucggvghljoiiqhhuvgiiuceolhgrrhhrhihvseiishhhrdhorhhgqeenuc ggtffrrghtthgvrhhnpeehgeeiudeigedvvdffvdegfeduudfgtedvtedttdefuddtjeev gfejgfevteehudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehlrghrrhihvhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidquddu hedukeejjedtgedqudduledvjeefkeehqdhlrghrrhihvheppeiishhhrdhorhhgsehfrg hsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id BC05331A0063; Tue, 31 Jan 2023 20:34:11 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-107-g82c3c54364-fm-20230131.002-g82c3c543 Mime-Version: 1.0 Message-Id: In-Reply-To: <20b89b79-11bb-13fc-2867-6bbb9b979c00@eastlink.ca> References: <754f2048-2882-b7a9-560b-7c0564ac112b@eastlink.ca> <6240098f-7327-c73c-cbba-8bf4af5fce5c@eastlink.ca> <0810ab9b-ba5d-5b0c-1d63-a307573f1d22@eastlink.ca> <8a2bb99d-9ef0-b71d-f00f-96df346abc56@eastlink.ca> <5a5479bc-24ec-4d3b-9702-98b907c17440@app.fastmail.com> <20b89b79-11bb-13fc-2867-6bbb9b979c00@eastlink.ca> Date: Tue, 31 Jan 2023 20:33:50 -0500 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Ray Andrews" Cc: zsh-users@zsh.org Subject: Re: (j.|.) Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 28882 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 Tue, Jan 31, 2023, at 7:21 PM, Ray Andrews wrote: > On 2023-01-31 15:33, Lawrence Vel=C3=A1zquez wrote: >> Search for "x|y" in zshexpn(1).=20 > No completions. I don't know you're talking about. Just run "man zshexpn" and search for "x|y". (You might have to escape the "|". Alternately, search for "Glob Operators" and find it by eye.) >> Search for "Subscript Flags" in zshparam(1), then find the "I" flag. > Ok, I have that one about understood.=C2=A0 So many tricks attach to=20 > associative arrays! The flag is not limited to associative arrays. % foo=3Daxaybxby % print ${foo[(I)a?]} 3 % bar=3D(ax ay bx by) % print ${bar[(I)a?]} 2 % typeset -A baz=3D(ax 1 ay 2 bx 3 by 4) % print ${baz[(I)a?]} ax ay --=20 vq