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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31968 invoked from network); 12 Sep 2021 03:34:53 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Sep 2021 03:34:53 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1631417693; b=X+ItMCLSejP+hRE8mProwTxWWqHVNqPizMEl5/20YImurHeNkxVrVYIyiJvoKP7ihCwRbQGRAu w93CvoYXW3lR2AdV6VUQquivdx4/Dv/7m2r1sW+bMz77NGJTIaNw815WdlqlXjTjjzvnFHb9Fc ZCoVWImumjGgfgUEHXMIzLo0RItD8I6L14Z9hGwcI5toNOln9crzUvNfIrPX4zTeMdkrKxepFj xU5gSdK2dGh+7ptFg4BOWVKSewtKwO841okx57nyFgSpw9a4/ESI9NSL/6Lj0wH5Njf20BphLP ChVm8R19Y3SGVPzLI2IFsjqHRI6Hkl5JDwPqH07BT3FamQ==; 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=1631417693; bh=4Q9nfPy7FU+fa8T7iUxl2WJ26NWKf82V4gXD2QOHPHw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:DKIM-Signature; b=m68yrGtDqieQtdG8xDrfoUCyc84om338+PhXsBxl4An8b28+N///lWE5nQJRLCSPHpN9i+Zz8P c8b1ku4pXVdwwVWEhx/SSjeKAAXL4meA8Q9iyBT3gko3+LcAQGU4eOpza00S3cWgvtnXOkCtex d4cDPkzm7PPRGpf+rE4JSDDTnxnyzSfMRXRNg7g2JCrlIAp67ZDsQrEmpZrlCsi56Io1z4QfMr daDPIhxEzdmYzdf8XJSQV1ETZW8boKDyUVGCD5DjNLlbYk+k4L8nVtuzWuJg94gnXdQ0yiLKoV 8dDdvmTDEVWbfUgPpPtpiEz0dQzH4KUWa85oo2gVyxoniw==; 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:MIME-version:Date:Message-id:From:References:To: Subject:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ohzLhLDfIDKCTZOU6/TbzAgdu+6PI7YNeCNJA2WKd1M=; b=Ron9ec8wumqn8pgCE/iuWS5BBQ BqtLMWGG8lvYStSHUDBLQh1gyqMczSENHdq5dXeml9IdfGI/Axz7hYfnZ1LZSS+h7nfNxWmYT3mL0 THtHlGbFJPijuCovMm5G7aVjksgL2XBDFIVddrV4xmUnbMYyPTkNIoLYy+y6LEpXikD6cdejAPrbq 6IC7ee9pOZYpsSaUPG9R67Dj1PNvgK7Qw2E8Go9Z0bprmEU888ZxzkIB7Pkwv840je7VBqlJQZtro dyqLJeKNj+TPObIbkx5c6POyVtryATtb6NCauKYB+BhpnVeS2yGCn6GaGPyeJhMLjL9AX74jGM32d R/GPolZQ==; Received: from authenticated user by zero.zsh.org with local id 1mPGGa-000OWq-Iz; Sun, 12 Sep 2021 03:34:52 +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]:54135) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1mPGFZ-000NpK-KW; Sun, 12 Sep 2021 03:33:50 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta01.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0QZA00N02XJCA700@mta01.eastlink.ca> for zsh-users@zsh.org; Sun, 12 Sep 2021 00:33:48 -0300 (ADT) Received: from [192.168.0.2] ([24.207.90.194]) by Eastlink with ESMTP id PGFUmaOCWVz4DPGFVmxeKE; Sun, 12 Sep 2021 00:33:45 -0300 X-Authority-Analysis: v=2.4 cv=c59u/Txl c=1 sm=1 tr=0 ts=613d7519 a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=IkcTkHD0fZMA:10 a=E4vYCtWXm3lPpBPbTMAA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeggedgieelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepkedvueeuffefhfdvueeiteffvddtvdejgeeujeekieduheeiteeiheegtedvhfefnecukfhppedvgedrvddtjedrledtrdduleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdeltddrudelgedphhgvlhhopegludelvddrudeikedrtddrvdgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.90.194 Subject: Re: Is there any possible way to automatically escape characters when executing an alias in zsh? To: zsh-users@zsh.org References: <8432871497e50ae7a6136a9e03a09ad6@dondley.com> <4df9fd0786c03076984bfd7d5cccc34c6780f519.camel@ntlworld.com> <01fed731885d32a336c7b0f31c8f4156@dondley.com> <88e7249e-09d7-4fc2-8b7f-d9e00c86f44f@www.fastmail.com> From: Ray Andrews Message-id: <9dd25eed-c33b-9c64-5151-ebcdad2220d8@eastlink.ca> Date: Sat, 11 Sep 2021 20:33:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-version: 1.0 In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-US X-Seq: 27118 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 2021-09-11 4:17 p.m., Bart Schaefer wrote: > > Figuring out which quotes mean something and which ought to be > re-quoted is not a trivial matter. > If any special character were to be automatically escaped, even if it could be done, would it not implicitly break the normal use of that character?  Surely it is best to just use the shell syntax as it is meant to be used even if that does cost a keystroke or two? Quoting and escaping is one of the more understandable aspects of the shell why not use the syntax as it is?  Dunno, every time I try to get zsh to do something she doesn't want to do I end up regretting it.  Type the escape and be done with it.  Just my two cents.