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=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15337 invoked from network); 10 Feb 2021 02:53:00 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Feb 2021 02:53:00 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612925580; b=Y6RbcsSWpjjn4IRfu6Nl6/UByq99nt91eBwK943efisZuSUCjFQ5H93/5pLw71pjPglq2aGqiI rlWh8fG0+mY0hExGKClxOOmKYunlwnvdxwFYr9nBl5OHLi2jo4kkxSxFH5ep/9DHINkSBZ2rl/ idFe9KivWbZgeVCYgeZX/WKV/QpR6mQDphjJp3Q8CI5dayj0/0dvqrl+L4PSyNw3VRnHjTjmjZ L88pDqQsEgb9JVwIbtTETcL6aaauSsZjuoRCQnupV52UZo3ejiWt7VS9APXi6ARfoggNK3Axj8 qiHddSWITL91fsoREe3On91ajzjL1b2fymJt5956no2+AA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (wout4-smtp.messagingengine.com) smtp.remote-ip=64.147.123.20; dkim=pass header.d=larryv.me header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=pass header.from=larryv.me; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1612925580; bh=xrL6K98xeMe2+4JjuM3yGP8hAM5A6EPKP9grdf9+urQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:References:Message-ID:Content-Transfer-Encoding:Cc:Date: In-Reply-To:From:Subject:MIME-Version:Content-Type:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=u/2s/HUgEqakS/UpJeG7uuDny33nzacPQdewA3IrDLeSHGkm/Anf+YzOJYk1nUp9IbzmcLzDsZ W6BFQgmramTiBPLsQ7lPF98+p2+43a3cMdmOx4/WBW+fmT+AaPzTIGiFNWA/0cJYkqchxeePEv SJ0kgAuJY0qIxC5+RTmpQoQ7fi0+G57fBJoSzkwYhhvwlpw5/WReR6PhHGC5diSIwyo/sXGS+Q ZwRA6Op3JwZxeZmb9JunFILbl3rkURX7B8m+ELe2aArPt5j8cXUAink656qRtLvY3Rv2eMV7aA s2bQZqBlapl8MPq4A1+NQIJML+j9Qjfzu1yJ2587HYxKNg==; 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:To:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=MqkZmAb20HIxmtCAmGHIJZcZ8F0ULTs27wrCMQOA57s=; b=jTVXB7i1SdFAvcGn4UbM+jfMQ4 VLzOi6Ka8bj765/9Gfz/78AUXAB7Rp2MtaSQETTm8sLRWDaY3a1prDu+7/X7R9QP3IjO0DkTWkpyZ K2j4F4x1MmSUcPsPqAZ8EkGuxxEgnfgiWNFjfVSTfv2YNSkdO1x7eXkWs86vQAk7AucFuWMa/OBUq Fh6WzBEBW8yHr+iUXd0g0SeujYoUn26iFg6S+dbxB5iR3jQfy1db+0RXCxV7Hcyflp1kEiMF0mgz0 ns6V9vVRMoLGngMuGKyvaocKf2boebr9aYzJaKSHap670ni+hD3gBd3VIYWpFV/+NBfDURqpgruHO lUJziO/w==; Received: from authenticated user by zero.zsh.org with local id 1l9fch-000AtS-DC; Wed, 10 Feb 2021 02:52:59 +0000 Authentication-Results: zsh.org; iprev=pass (wout4-smtp.messagingengine.com) smtp.remote-ip=64.147.123.20; dkim=pass header.d=larryv.me header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=pass header.from=larryv.me; arc=none Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:33239) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1l9fc7-000AWF-NV; Wed, 10 Feb 2021 02:52:25 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 2B528E1B; Tue, 9 Feb 2021 21:52:21 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 09 Feb 2021 21:52:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=larryv.me; h= content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=fm2; bh=M qkZmAb20HIxmtCAmGHIJZcZ8F0ULTs27wrCMQOA57s=; b=AJJ8nUqQIE+HunQ9c Se/BOlwow6Zz5rtE9ww2E+w9h5Hm9TraIHCZhTY2YE8bcmTCjV8xBiAloL3RlfUL 5gDu1hA+WhZY/ZOYBnPKvii88AuBM7sbugtBRE5TfO7YwEttOJxgqxLuBZp7wcLm 0qBz17h7dofw1sgPhPzKdmJgMa3rM7GGh/iG21tLUnJAvKnDwizG8yQt81WBjrtV SRhV+8H6rBzrzfKOBJR2huOeg5bPlHpEgjhub+Fkf6NZXtZUXSpZbH3/AW5H/X8R mWwy3jqCl6wu1IehupQSHY2KJtegGS8rk+r9b6xgA6bVchP/Pe71CVY5YKUz5YAW VEbkQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=MqkZmAb20HIxmtCAmGHIJZcZ8F0ULTs27wrCMQOA5 7s=; b=mZWGoiiRqi0wQafhYM5AqmbNHjcado9BBTCyHuCoNXKI8P4lIzRur9cvq KUyoHgOI6U3NMPj0Q3L1jHkLwNB0i1WuqSOoe5NuRwr+lf8QvCy5jfy/lZoO/ZJ5 fh/XjwsbdzRXFXMver5+48eWgkA7lVyIOjrpRgWb0uXATN0CFDrnxgmMZWqNx0Ai AEtOUxqtLi0fVEV1kCx+mLbTH0ANFeiiUMC5BEk6nRhQ7gcg9g7o5LDZ9lGmK6sK 9i4iPgPc8LoJ/u0JGC3U2/qiAoK+lM4xKAx12R9kXP8dB+VdDN3Sbws2OrlF71fc 8eYbH9oatbZsjYNTX7HDiFa37KXeQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrheeigdehfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpegtggfuhfgjfffgkfhfvffosehtqhhmtdhhtdejnecuhfhrohhmpefnrgifrhgv nhgtvggpgggvlhojiihquhgviicuoehvqheslhgrrhhrhihvrdhmvgeqnecuggftrfgrth htvghrnhephedthffgvdfgudejteffheffudettdejtddvhfeutdfhudehgeejjeetfeef hfevnecuffhomhgrihhnpehmihhkvggrshhhrdgtohhmnecukfhppedutddtrdduvddrje egrdeftdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehvqheslhgrrhhrhihvrdhmvg X-ME-Proxy: Received: from [192.168.1.15] (pool-100-12-74-30.nycmny.fios.verizon.net [100.12.74.30]) by mail.messagingengine.com (Postfix) with ESMTPA id 421E7108005F; Tue, 9 Feb 2021 21:52:20 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: protect spaces and/or globs From: =?utf-8?Q?Lawrence_Vel=C3=A1zquez?= In-Reply-To: <1aec7108-8a44-8866-1db3-7d93f614582f@eastlink.ca> Date: Tue, 9 Feb 2021 21:52:19 -0500 Cc: zsh-users@zsh.org Content-Transfer-Encoding: quoted-printable Message-Id: <7A1E233A-5644-4511-9434-176345006E39@larryv.me> References: <52D5DA56-397F-40BB-BBA7-CE3BF7256581@larryv.me> <29a203d5-bf53-9cb7-7a49-2705c3b1d8f2@eastlink.ca> <3E154CC1-4B1F-4ADB-993F-89100A7F766A@larryv.me> <1aec7108-8a44-8866-1db3-7d93f614582f@eastlink.ca> To: Ray Andrews X-Mailer: Apple Mail (2.3445.104.17) X-Seq: 26487 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: > On Feb 9, 2021, at 9:25 PM, Ray Andrews = wrote: >=20 > On 2021-02-09 5:46 p.m., Lawrence Vel=C3=A1zquez wrote: >=20 >> ... which youhave already decided is an ulcer and cannot possibly be = anything >> other than an ulcer. > It would take far too long to explain the whole show. If you have the = time and interest > contact me privately and I'll show you what I'm up to. But I already = waste far too much > of the list's time. Au contraire. https://www.mikeash.com/getting_answers.html#provide >> % () { eval "print -rC1 -- ${(q)@}" } a 'b c' d 'e f g' >> a >> b c >> d >> e f g >>=20 >>=20 > Thing is that if those args were going to grep and they were filenames = you'd end up with: >=20 > $ grep [some search string] a b c d e f g No. This has nothing to do with grep and everything to do with how you assemble the eval argument. % () { emulate -L zsh && eval "grep ${(q)@}" } pattern 'file 1' file2 = 'file the third' grep: file 1: No such file or directory grep: file2: No such file or directory grep: file the third: No such file or directory -- vq=