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 8521 invoked from network); 31 Jan 2023 16:39:17 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 31 Jan 2023 16:39:17 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1675183157; b=qL6dqPbuBntxQfuX/0SZctQRL4cRsiMxhPk9Ymzcb6AjdzfRzt/Y9en7EIlSHdgUabgSRGOM/z 5xYbrRhAjRUcbzGiCwEFDfBdhhuh8ZbgawekzCjx7ojbmnHygLXvUukRI5LO+c8fE+Ty5UdmVJ m/zvuhez1tpz8axoyQ9D3xD43Y6JAX1z/zqh76jGiKVQT/e6yOY8dgcKtTYCRBj0PV1hxks4Aa rPszGTb0ZGu24dY5teeRGccSNfi+QnxNEeU4cKDut7bxuXrvjETIrWLim3/Tkn9avY4J7MINC4 0SslyAp6nBnvvIcHvV/aSG+sI80WUjnIadkViIMS6Q5StQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; 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=1675183157; bh=PBvdc148uTF3jyJ98hKf+WfKHo1yzaU2WjbSJLkPNYs=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Subject:From:To: MIME-Version:Date:Message-ID:DKIM-Signature; b=jjv67mLJFmcUVDw2XBId1E0iZOLRslQu49kpa3xMyzmU8gBgKywioBL6c34VvdO/hWDDkHyRDT 0mE/BMhijWHajjvcBMt1HHxKWBfaUVxUoiSWnr6uKDtUUNUmVG7hxdty+0Ng3sdEKWk+bVI95b IT322RmECfnOKx4nJY9UO69loqC9GY4nVQWcNfJAwSb7K2jUVITk+Z3gax8futbl24uPYUkEYM 5jEiJ/7pIcD1k2ZEWpHs8qrm9HNWl0DfEXAE/dQQt7aR5+b9KUkMS7tpQ2QJeCglwU4/sZErzX i61oe1svJlObKZJItTdxBkWDeEbMyTNhIkvxi3QsDPYLzw==; 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:From:To: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:In-Reply-To:References; bh=aqIhFW37gsuBILWYnaV7Qh//quseJQgrrj1bWgoJFyI=; b=PD+q9GA00k04QnS2KzzPM+iAoX csWg/BZhOlp8y2BTyTZKMFETg5MugkmVB6uqq16QPVUfgeXLTa6MclDFYd0DgtT3swTvrF7P8fylo a0oT+VVFgICKsAlyGNtXKc12hzLyhjyuLM59clAMBEIHHHlSd+mInI8UN3A1uvfj2IzsmXQ5IalaQ z3Evp56dvdmBFf+IkOG9GjMsLVkdDLXf9kB6IhGvQ47jIjUQVA4eWYVod7enWaYRpWhdHhBpLKndY 2l+5CMNMqrnWnagvN74K3bl21CaqDhYBfB/dIt1MAnuePxeMdu5G8gLeWrD3MJWdMt3KYWBBM1jAI PRzfv8wg==; Received: by zero.zsh.org with local id 1pMtf3-000BJK-GS; Tue, 31 Jan 2023 16:39:09 +0000 Authentication-Results: zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none Received: from mta03.eastlink.ca ([24.224.136.9]:58303) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1pMteO-000Abc-Pu; Tue, 31 Jan 2023 16:38:29 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta03.eastlink.ca ([24.224.136.9]) with ESMTPS id <0RPC008XGXG73Q60@mta03.eastlink.ca> for zsh-users@zsh.org; Tue, 31 Jan 2023 12:38:27 -0400 (AST) Received: from [192.168.0.4] (host-24-207-18-108.public.eastlink.ca [24.207.18.108]) by csp01.eastlink.ca ([71.7.199.166]) with ESMTPSA id MteMptURl6z6sMteNphaZq (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Tue, 31 Jan 2023 12:38:27 -0400 X-Authority-Analysis: v=2.4 cv=bOzQYtyZ c=1 sm=1 tr=0 ts=63d94403 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=B7lwf4RoJs5Tf_d9HX0A:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudefgedgleduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkffggfgfvhffutgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeevhedugeetieevveeiueethfffleehkeeugeehtdehgfetjeevhffgkefhieegffenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrdegngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: -100 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <754f2048-2882-b7a9-560b-7c0564ac112b@eastlink.ca> Date: Tue, 31 Jan 2023 08:38:26 -0800 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Content-language: en-US To: Zsh Users From: Ray Andrews Subject: (j.|.) Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28872 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: Bart: Your clipped comments and code: # ${(j.|.)var} means to join an array with vertical bars; here the var is @ for the positional parameters. # ${~something} means the value of something can be treated as a pattern, so the |-joined positional parameters form a pattern. # "set --" replaces the original positional parameters with this array of parameter names. set -- ${(ok)parameters[(I)${_v_case}${~${(j.|.)@}}]} ... I understand everything but the '(j.|.)' -- it seems ok like this:     set -- ${(ok)parameters[(I)${_v_case}${~${@}}]} ... I see no vertical bars either before or after.  The PP's print as a spaced array either way.  But  you didn't but that in for no reason.  Besides, the idea of joining the array seems backwards.