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,NICE_REPLY_A,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24928 invoked from network); 16 Nov 2022 14:09:25 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Nov 2022 14:09:25 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1668607765; b=XD0P/j2VIO00KdW52HhOex/UOu/lAFRwBrs9X0RXh3zhdnEaDUbxavr1u2vt6k5DiTu7IpsBoF /OeKKVoW0mKDMzVYrUcj1qY7O0Rfk6Z73OO3f+num4m0LyjENJ+DxQS8vk9YYYckyj/l7cHByL +55QoMaSNZBFGcQMipJWK/XgNyZ0SpwYvE7l4H+X38HCh9ehr8Z9jI8dYUW26CMQqZS/YsdrW6 hJHGptvjvEGsnIjnEr+BQVVQKJ583u12CS2mvfs+WtHrb5ujmUNig42R7163ynBTEvG+ZLM2E9 uY6sY1JAGyYF68KB2DL9rU3EagpjsE7pUJOKD2h6HBtcwg==; 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=1668607765; bh=d7m+SLdteuIZV2XxOcYGca1h7ebp7s0ZaSBcQi0KPZM=; 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=sR+dCH/S42k8lDC0dykKu6TAnkFbNZPruZelVDVZkd4XKHaaL6MHpbBe04MqEEZmiM7fnjBbrb kHXAIktpxxZY2C2hdX+v8Edvyaj9wUxg0QLUlHqVW46zAFZeJyGz4WPi43NplnIQJnRiYJj+Bf isWKJMXp+RUqG2z3V/dcFmolQ1FPjAr4Un+Sf2G3vF98VDJKi/k9LDRVu6wuBtekgMC5DEW7Zt IszTZJOp0gzCeUfoUik9oo4QNAPv/RiAUuDD9HPj3jBqi+wvl/Z3jwGhbIUyiu5ETjn2ksO8+8 NvwGOwNkkP2x6LM+LqgVl+KPul5PZQCPAZTyjHk2Vujkyw==; 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=tkHxiEHpR1c4Atqf02W+GBV2Xt+Cb+CUDFtDYLcojNU=; b=rZkr2tFTg/pBxe95hxKT1ghoIc 6ZyKrMbsecA+v7Aak+DR35z7tXOA9H7BJKGqNGzRnkT42J8rV7COA04/94A5WMfBsoE3syHLyxmAF RUB+0nzNU7T7VfWih8G5rSLRsBKlGvORTLwqQNM4PRTSrXBMMIiRzH0rkTGNmNZD8dcN/CJIsgktR TA3MktbhmqEh6qV042jCGpkBcwepo6PcNEib+reHJf/G5EdhiM4CbCjkykrRMP06rlzyRH8g2oNb1 YnPmdiplrqHJxU8b16qQAmGsWld9uqoumFxwyAqHIB52uqbqzk1wT2ozBYhEbmPJHAV1xeAF9m0DX QLosroaA==; Received: by zero.zsh.org with local id 1ovJ6S-000Bae-1c; Wed, 16 Nov 2022 14:09:24 +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]:49144) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1ovJ5b-000Asa-9N; Wed, 16 Nov 2022 14:08:32 +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 <0RLF00LBHWH5Z521@mta02.eastlink.ca> for zsh-users@zsh.org; Wed, 16 Nov 2022 10:08:30 -0400 (AST) Received: from [192.168.0.4] ([24.207.18.108]) by Eastlink with ESMTPSA id vJ5ZoKPgegfyjvJ5Zofins; Wed, 16 Nov 2022 10:08:30 -0400 X-Authority-Analysis: v=2.4 cv=M9uLaQ8s c=1 sm=1 tr=0 ts=6374eede a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=8jDU4--yLl5qhoUKF3IA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrgeeigdeitdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrdegngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <1d79745a-10fd-3a23-c67f-af1048be6b19@eastlink.ca> Date: Wed, 16 Nov 2022 06:08:29 -0800 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: Belaboring substitution syntax To: zsh-users@zsh.org References: <34a949c4-0853-4c65-d2ad-db40749dff81@eastlink.ca> <2dd50dc8-cdbc-02e0-0e1e-485718732d0d@eastlink.ca> <3a10f310-3ee8-d3b4-f6db-7fdb18b81b1f@eastlink.ca> <77692192-70b3-8a6a-fd01-d5f8b37f59b2@eastlink.ca> <879a8fb0-74b7-5250-d2ff-2f60585f48a4@eastlink.ca> <0ce205d5-31f9-907a-61bd-1bf5acb37f0f@eastlink.ca> Content-language: en-US From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28393 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-11-15 22:26, Bart Schaefer wrote: > > That's almost always the instance in which you want to use > "${array[@]}" or the almost-equivalent "${(@)array}". The difference > is that you can [sometimes must] use (@) on a nested expansion > "${(@)${somethingthatcreatesanarray}}". Sheesh, that's a new one again.  I'll add that to my list of potential expand/protect/join/split/slice/don't-slice/compact/don't-compact candidate syntaxes.  How you guys can possibly parse all this is too scary to even think about.  Still: "${array[@]}" ... Read: protect the elements of this array, do any expansions within them, but do NOT combine them ??