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.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,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 A868B240FC for ; Sun, 21 Apr 2024 22:47:27 +0200 (CEST) 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-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=SMnYepJKIBKANk6aKFRRqNaxas81b2V36I/Jingy+Ac=; b=K+8oN91EOdHxzmoHSKSfsXi3qC ndfhIgFcOuIrTSyF0ufu9SszIZxbES/IzYbvNzn0OF2/82MTirOWSDR4GXCSPHOv/wk5iNfEJyeQF ORcZHM8s+qaO9qbWv39K11bvxsDKNWBr8+8ZE4UNiixBNnzBe3p9OZ+vQPhu0Alf5qGmz/Ps/NwdQ /Ryb/4Edpe4XHgO6hk/ETDY8oQpDxwyovzTUGg4c/0Gpa3xI386GSXn3WKac231DMruLJORURG90O h4e5zPU7ALec9yYmvyuwtNb/yeW4swSYpbwykmnEutxZlcE0ji9sycvl+PYVKCgZqXuOZlw2Xp0zH ReHny+Wg==; Received: by zero.zsh.org with local id 1rye5u-0006qF-Ew; Sun, 21 Apr 2024 20:47:26 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rye5O-00068u-MS; Sun, 21 Apr 2024 20:46:55 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfauth.nyi.internal (Postfix) with ESMTP id 2218A1200032 for ; Sun, 21 Apr 2024 16:46:53 -0400 (EDT) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Sun, 21 Apr 2024 16:46:53 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudekjedgudehiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesth dtredtreerjeenucfhrhhomhepnfgrfihrvghntggvucggvghljoiiqhhuvgiiuceolhgr rhhrhihvseiishhhrdhorhhgqeenucggtffrrghtthgvrhhnpeeileevheefgffhffeihe dtieegvdfgkeffteejgfetledtiedviedvteeukeegkeenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihvhdomhgvshhmthhprghuth hhphgvrhhsohhnrghlihhthidqudduhedukeejjedtgedqudduledvjeefkeehqdhlrghr rhihvheppeiishhhrdhorhhgsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id DA60C31A0065; Sun, 21 Apr 2024 16:46:52 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-379-gabd37849b7-fm-20240408.001-gabd37849 MIME-Version: 1.0 Message-Id: In-Reply-To: <20240421201351.n5cku2gqf246joaf@chazelas.org> References: <53fab6be-26d7-4de5-844f-ffc295d9a494@eastlink.ca> <3d15311d-b5fa-4a55-a17e-e61fcdded7d0@eastlink.ca> <9fe68299-c89f-46a1-b10f-eefadd03a262@eastlink.ca> <20240421161440.jicmznwxqb6pz2fg@chazelas.org> <20240421201351.n5cku2gqf246joaf@chazelas.org> Date: Sun, 21 Apr 2024 16:46:26 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: zsh-users@zsh.org Subject: Re: optimal expansions? Content-Type: text/plain X-Seq: 29855 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 Sun, Apr 21, 2024, at 4:13 PM, Stephane Chazelas wrote: > In any case, for fixed strings, whether to use -- (or - which > also works for print) or not is not relevant as long as the > string doesn't start with "-" (or "+" for some commands). But that was exactly the situation in question -- not quite a fixed string, but an argument that cannot begin with "-" or "+". > print -P "%B%2F${pkg//\%/%%}%f%b" -- vq