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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25930 invoked from network); 18 Feb 2021 22:13:31 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 Feb 2021 22:13:31 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1613686411; b=EredvhMbIyclGFb07wFHwGjEld4QjLeP5+AJ4GStqdqKT1v6cUp2K6O39STSCOzQAQnRGiPPQO WptFhFAdpdGlNZ1HDKx7v23QEPCqUBkLH9cMcF2j6+KMS/KQnCFtwPGh0xSPfISY4f1eE5Mats KMeSBB+P4ppHQAIkVXh2knU1Lm1tm62WfEMQ4pepc9ONPuZRJo4bSoCMYmYPE8l7pa2unI6J9s Afpj6tZyrXNIEBTGwyqEy+LQQO1Yfp5C/l7WYu8fYq0lj3cmPYtJxTUaisgh5yklGKj8cT7+kO Jqs2I4kHUZhVzQB6FgYBq/bAJ60oDztYFKa2hnWrufQv9Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (wout3-smtp.messagingengine.com) smtp.remote-ip=64.147.123.19; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1613686411; bh=OtTicACeyMXd0WEU/IdgJv/5j77Nvg3l8z+eo8VaCew=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Subject:To:From:Date: References:In-Reply-To:Message-ID:MIME-Version:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=whM5ICVA6G4rEczNhVBK5k06HFbKXgrilnTZ3vjFoJ75er4Sw3uTZTpAEqHSPPhgHzTV72EQdS /vrNl/wqLuS0bJEH/+YliTue/F+UXOd1zg4la58OcoxReHI1u6ofY3BYxIGBZrijhqp1B3ZZWw qUTtRbjpz/sDWN7GP9mGN+7exOKrMfOdoyCbeMCOE0NktuRsxWDmuIuph9+MUB95n+hZHVMUiL 2ugTCYKb3uRQgf4ZB8U3BnmHN1981PYENEU5RYxWJ2TRbkKR+Dp4TBOc4B6XHxAeSEDFWWCCML BG4oyxLgDes5ygF+cwspUsjWFDz1yweTUwZJlmPPaiGZ1w==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Subject:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=yKzonuF0UplZ5BbYf1CtA27+mU8VcEmz91N61ISHQL0=; b=sQbZheNsQ7dLQ7aHoHPq6ytua/ t4jqJMzAm5DfTpi9AmiYSlqnBseyJ8d47/HdVNHwb4jmvBiFWStJn3yNpkLbXwtOEGxVtlSPofmwp PCdFeKddZGoQr3BGEaL7vJp5GlgOiAthIdZc+8EBjBy8AqvW+F1gOwLX6vBltlxs38tG0X2sacQYO cV47yMKkXOYy9aFy3HecOT46oSmqLBh+GZw+dDvnORxFZ85uYYELZPySCgrphce5qLW5VMH4F79Qw GBR1y8iqSs6ROH3WxVeyWrjDfNMMfB6aQvLM7UmEfM0auRuHc/AhpLQeel/UHsA0HCO9pl0Zq+cQ+ TFa5doPQ==; Received: from authenticated user by zero.zsh.org with local id 1lCrY9-000KqU-3z; Thu, 18 Feb 2021 22:13:29 +0000 Authentication-Results: zsh.org; iprev=pass (wout3-smtp.messagingengine.com) smtp.remote-ip=64.147.123.19; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:40747) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lCrXf-000KTs-9T; Thu, 18 Feb 2021 22:13:01 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id DB23AB12 for ; Thu, 18 Feb 2021 17:12:56 -0500 (EST) Received: from imap37 ([10.202.2.87]) by compute3.internal (MEProxy); Thu, 18 Feb 2021 17:12:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type :content-transfer-encoding; s=fm2; bh=yKzonuF0UplZ5BbYf1CtA27+mU 8VcEmz91N61ISHQL0=; b=SFgd0GdGCIWkPFJNqy30STmyoWeglO7n7JH7AIQ1Lr SL2scu4XjFYfI2OJ4HBkjPZqyYJyWrAXox6AKASvlHkAkV+1HliYd9vOEv0B309o 3Nu63Xqn83FW/8zVYlm4iN+7ZfNKzJfpnMiR/90CzWgidxFS58zU6FmOB7hwvNvF oWHv57At7V5PUMM/PLXeuyuuH/ldCZVuMl5Tx//NPtV/HXpKS+yqnKOTdivzSUFh swTHDThUUhdZXCuNC5FC8ZqM+PU9y/BKJW0hUYqy6lk1oVoSrc4IgMI+ey7N1SF4 SfEM4me4LQcxJub+g3uNszgWSh9pP7dl08CjpAGE/TrQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=yKzonuF0UplZ5BbYf1CtA27+mU8VcEmz91N61ISHQ L0=; b=DcsJhkryEviM/z6FjNafFBKcapND9nPuLUdB3YIs7fb0Ba/KP+6f2TEm5 +UiumWEVgG63sk7t4Bwc5ogTR+0dMFLeso0+fd4sCylIpyW339ci+HL4RWKYHug0 dC3CZNBa7tXOAbZn96rUp1zA0igPH4HUAt/CbVbWA06+St8eMNMrRUIXrqsWAcCu D8QAUx0LtNkYSokgoiFxEF9hiubv7qO0k3j10Q8arREcU4Gdkk2FTRywIzNgnQGu QgfTOvohj8roM7SO7+3pwNWD/6oRKy5NtT8eDV6Z04A6LJN8Ke0Bca1wKvirFV3P j3r0epfncmnhOzsqhKNnlf589Vk4g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrjeeggdduheehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpedfffgr nhhivghlucfuhhgrhhgrfhdfuceougdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmh gvqeenucggtffrrghtthgvrhhnpeefhfekfeevieelleehiefftdekudejledvhfdtjedt geegvdeuffefleehhfdvgfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id DEA976B4005F; Thu, 18 Feb 2021 17:12:55 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-141-gf094924a34-fm-20210210.001-gf094924a Mime-Version: 1.0 Message-Id: <3e34714d-d0f0-4b8b-9f2b-fdbc10c85854@www.fastmail.com> In-Reply-To: References: <20210218134039.GA1492462@zira.vinc17.org> <8b3a9f93-5eb4-4d4d-8312-58c371e12239@www.fastmail.com> Date: Thu, 18 Feb 2021 22:12:35 +0000 From: "Daniel Shahaf" To: "Zsh Users" Subject: Re: auto-quoting inside braces in arguments Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 26536 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: Archived-At: Bart Schaefer wrote on Thu, 18 Feb 2021 19:07 +00:00: > Stop "eval"-ing things and you'll stop having problems. +1. You might still run into null elision, though. > If for some reason "eval" is absolutely necessary, THEN you need to > assess what quoting interpretation you WOULD have used if the > argument(s) to eval were the original command line, and re-apply those= > quotes, which zsh makes possible with ${(q)...} or ${(qqq)...} or > whatever. Hang on. Why would it matter which style of quotes would have been used? Considering =C2=ABeval "$foo${(q)bar}$baz"=C2=BB, normally $foo w= ould be constructed to end on inter-token whitespace, and then the number of q's= wouldn't matter, whether it's 1, 2, 3, 4, q+, or q-.