From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id C463623879 for ; Sun, 21 Apr 2024 16:10:43 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1713708643; b=Us72oLuVUQpDvsq2VeZe8nTO1fixyf/htLu7g9r0KbvQrBIfkVCYWGT2s5K7Fikws/8idfUANV 01MVZp1KrRKkgY15EKqGptlyZcsdN+ctTGD377Oc9km9Efluxu7ciM8zD7CEoAsRi7EbmDfIly z4cIwRu6BJGX0tBKe0OxM2oEC3P9fKutiiFE7KkTUC2ooOk6wwwD3ZPnJIqK3aEvZuCU/K8D5y KOqfq/2RcyfDu6+9bFqWPBlP5Sm/WjTKEcO3tb2Sq1YTPTYkVidACq7rxZoAK0FyiLeiTfyCSW sozxeTItbu8PxpSKHPrLGmpLhpO6ZRfiSGNTbZEl5PYprQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta01.eastlink.ca) smtp.remote-ip=24.224.136.30; 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=1713708643; bh=JNn59VKnJ124jFOTMaBUokN3NqwHAXBiVcd6Gg98J88=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Content-Type:DKIM-Signature; b=Yy+JcvjszO+QZ6ebzbXHzYctteLrf3khSTVLSukl5vzdSxea9pOMQbFIrHvmbT/No51Kq9XGbn IE85YaBCz6l1EiveWCqpK2RcolrYc/t5UkfOcPSu2yy85C0scY5XQn4ImcF7/G3nhrPI0wXYFo 9e9hqWw2q14zsp+HEQy50Y/8/yJQ0dOdSl5hp+pbe0xDBINDTQWKqyFpOrBCy2RihWyb22OJMv 6/LMIDf3NbPQ/L93tBRoqJEdrDRogGtSOCxBCcLwLyASEFjTe2PTwSfv/nJEtpT2pyvKrXSAxp nemsOVFGsJiriAJySQEcnhucgb1jioRQNZecEBAEkeC7kQ==; 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:In-reply-to:From:References:To: Subject:MIME-version:Date:Message-id:Content-type:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Czdy9wwGvoxishBos0pg3AS57Dwt6lmFzep4OesOFSA=; b=VpHdsKScPrI+Udpg/gpJnB29a3 qAtm0DQkt2H300Pd/GqoKqih/j6gR/bjB744W2zmjC/REMJxzD74fLP9Pmn+2hiMf9oXVKIEyhD8i WWKDPGrsgjRP/8n61QdTk9nUHSJ5ASMcCWEA3t0tHuFTYvTuK7aMToXOI2JkI1TF6Z//W/fEWdCmp 5KmTK+Gez96WCA3Rd0XhJN3Ju4VP/tow/cw1bguaTa8IHtHaGd5xrVY+EQ2DH4A+LLZqDxsZMVWul 6ftV94of/Pjw5OUscvP9M8doqZhUBo1PYyuRwKQrbSHn0gFHbwdirTthtqXH5pBT5UBcXcCbxtE4q Db2LqADQ==; Received: by zero.zsh.org with local id 1ryXtz-000FvU-44; Sun, 21 Apr 2024 14:10:43 +0000 Authentication-Results: zsh.org; iprev=pass (mta01.eastlink.ca) smtp.remote-ip=24.224.136.30; dmarc=none header.from=eastlink.ca; arc=none Received: from mta01.eastlink.ca ([24.224.136.30]:39989) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1ryXsz-000FCt-RG; Sun, 21 Apr 2024 14:09:42 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta01.eastlink.ca ([24.224.136.30]) with ESMTPS id <0SCA2591OPZB4NC0@mta01.eastlink.ca> for zsh-users@zsh.org; Sun, 21 Apr 2024 11:09:40 -0300 (ADT) Received: from [192.168.0.11] (host-24-207-19-13.public.eastlink.ca [24.207.19.13]) by csp01.eastlink.ca ([71.7.199.166]) with ESMTPSA id yXsxrIxJ3AimnyXsyr5e07 (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Sun, 21 Apr 2024 11:09:40 -0300 X-Authority-Analysis: v=2.4 cv=Q8Rx4J2a c=1 sm=1 tr=0 ts=66251e24 a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=k3_g7cfA6CNvcBej6a8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=kxTDLmRI1SdugqkRhrUA:9 a=6KBhkMAyd2icRONq:21 a=_W_S_7VecoQA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudekjedgjeeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurheptgfkffggfgfuvfhfhfgjsegrtderredtvdejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpefhteethfevgeeuvdelgefgvdevudefueduffdvgfelvddvgfdtieegueeuleeifeenucfkphepvdegrddvtdejrdduledrudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdduledrudefpdhhvghloheplgduledvrdduieekrddtrdduudgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------Cpkn0GtJ058r0rfByzHmv3sb" Message-id: <9fe68299-c89f-46a1-b10f-eefadd03a262@eastlink.ca> Date: Sun, 21 Apr 2024 07:09:39 -0700 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: optimal expansions? To: zsh-users@zsh.org References: <53fab6be-26d7-4de5-844f-ffc295d9a494@eastlink.ca> <3d15311d-b5fa-4a55-a17e-e61fcdded7d0@eastlink.ca> Content-language: en-US From: Ray Andrews In-reply-to: X-Seq: 29848 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: This is a multi-part message in MIME format. --------------Cpkn0GtJ058r0rfByzHmv3sb Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-04-21 05:23, Roman Perepelitsa wrote: >> Seems we want '-r' most of the time. And the '--' should always be there. > The missing `-r` is a bug. It should be there. The `--` in this case > is optional because the positional argument cannot start with a dash. But the '--' is good standard practice, yes?  It's like putting on your turn signal even when there's nobody behind you.  As it was explained to me, it's easier to do it than to think about whether you need to do it or not.  Just make it a habit.  Meanwhile I have 313K of code that's all built around my understanding that 'split on newlines' means add newlines where you want to split :-(  ... so I'll slowly go thru it all and get that sorted out -- which will remove a hundred '\n's which will in turn permit 'print -r'. --------------Cpkn0GtJ058r0rfByzHmv3sb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

On 2024-04-21 05:23, Roman Perepelitsa wrote:
Seems we want '-r' most of the time.  And the '--' should always be there.
The missing `-r` is a bug. It should be there. The `--` in this case
is optional because the positional argument cannot start with a dash.
But the '--' is good standard practice, yes?  It's like putting on your turn signal even when there's nobody behind you.  As it was explained to me, it's easier to do it than to think about whether you need to do it or not.  Just make it a habit.  Meanwhile I have 313K of code that's all built around my understanding that 'split on newlines' means add newlines where you want to split :-(  ... so I'll slowly go thru it all and get that sorted out -- which will remove a hundred '\n's which will in turn permit 'print -r'. 


--------------Cpkn0GtJ058r0rfByzHmv3sb--