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, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15239 invoked from network); 5 Jan 2024 23:48:04 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 5 Jan 2024 23:48:04 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1704498484; b=n+/Cf02b+QkiyVLsWNUDAu9VSGog3mZwjKt87C+dvAg6j/ss5iGWTpRH3kIpgBOCPAfWiQ04oC OS8DbrwThSlYT1QugzftOhyhNaKiZie5b1CHdeE6wBC3eg8OMWsuN6NacqzPZ8mShStzM4wOUU 5ZEU2iijuKkMHBps9fniRIMpaaeVrxZNxTt1FGzhdVNat8YgCEvuyKoAqC4mv0yumxGort+y9z I5ELhHSBRGrYGhg5OlZyLlDnxQ0JL1PlYke1WOOLFAp4HJyl2DYiLNnMcPMj+PfaJPZmElHK9M 7tip1kz5BVEwn2MfKLj8GSDGZk5ROLPdts3a1BdKxAApCg==; 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=1704498484; bh=1Ax1omWI2SyfgSE9efB990BkBdUV+mOSsSNFv9uXaYQ=; 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=fJWoCECk0jYX7ALyz7D2EhVJ09rDufMAhEJdMwxvgwNYS3kynD/qzPUg1OKpeRykml5gKvZLAa NIpTmSioeETEd/2Ngd2CxyTbH42CQ/zTgXo4w/W32aQ3CeyDprtNiWkEshG53uKfkIOli+F3Vu I4yPKmMT1pTZ4XPLam6Cbd4PDqOP7l9byajTRNCv6+spuJiyiqU97O1CDfXQ/EMvoozyd/GCpU 8V3p5eLNkdhbnXM1z85ydsQ0p3Hoge8ohwlC4HpKE/PIdvpTASN8ydDcftsEEi9vLiBaYXAG6J DW7wQdwWOt25IvM9jE8g8O2mNsrTf13gFqtCVGfyzfQb9A==; 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=8XsPXlKGXfdCatvGg2V3FgeeHFotkkpoqN+YHkVIFQk=; b=Tu03c2qu1GkJyv+xWEmrhtGU4k PYlN/CYCEbXSAtkQMlzhviL/0+GbHrIh+NaJOuF2HBcueNWb+FhrodmuZ86iK+sOkoHeVOpjwE9Du sb5ybPiWbV/PfyI7CMiB6Twlyl8A9TCPSuJVNTx106PihKVWW+HXTEaPjY7hWoPwtH3DRn87WURb2 s8PKyi41XRHFwO7kYCt+sk0KbBJp1kwhn/XvUNNdB2wKR+EEYG+m+7S50tPuo9/G2SUdjbeTXLVWC CJrRNYar81ToQsAmXTIkmTOzqUAbNPgY5Xn8qsJJxKFlPjno1ZXBsBNSUgxNpnaBLziRMbIIyjjDL /WrS/QDQ==; Received: by zero.zsh.org with local id 1rLtv2-00097i-2l; Fri, 05 Jan 2024 23:48:04 +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]:37303) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rLtuP-0008O5-VS; Fri, 05 Jan 2024 23:47:28 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta01.eastlink.ca ([24.224.136.30]) with ESMTPS id <0S6T0QOTCBF1D9S0@mta01.eastlink.ca> for zsh-users@zsh.org; Fri, 05 Jan 2024 19:47:25 -0400 (AST) Received: from [192.168.0.11] (host-24-207-19-13.public.eastlink.ca [24.207.19.13]) by csp02.eastlink.ca ([71.7.199.167]) with ESMTPSA id LtuOrCn5wtqGELtuOrAyss (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Fri, 05 Jan 2024 19:47:25 -0400 X-Authority-Analysis: v=2.4 cv=Zvoraf3G c=1 sm=1 tr=0 ts=6598950d a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=gir0-LH0AAAA:8 a=EH3bEuvNJBzVvP3FiG8A:9 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=KnUNmMKKDzwuPqmzmNYA:9 a=BsZuvmtUc41dGPva:21 a=_W_S_7VecoQA:10 a=lqcHg5cX4UMA:10 a=aLewGyoHDmJ4ULJHWpSz:22 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdehtddgudegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurheptgfkffggfgfuvfhfhfgjsegrtderredtvdejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpefhteethfevgeeuvdelgefgvdevudefueduffdvgfelvddvgfdtieegueeuleeifeenucfkphepvdegrddvtdejrdduledrudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdduledrudefpdhhvghloheplgduledvrdduieekrddtrdduudgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------ld7ciz9cx6EPdhkCfAQDcYsz" Message-id: Date: Fri, 5 Jan 2024 15:47:24 -0800 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: tilde syntax Content-language: en-US To: zsh-users@zsh.org References: <625e7ef5-be1f-4b5d-bb2a-f71634d151cf@eastlink.ca> <3fb34197-be9a-4323-87e0-7052cecf33ea@app.fastmail.com> <3adba5e1-18b6-495e-bcbc-09a554465029@app.fastmail.com> From: Ray Andrews In-reply-to: X-Seq: 29428 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. --------------ld7ciz9cx6EPdhkCfAQDcYsz Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-01-05 15:27, Bart Schaefer wrote: > On Fri, Jan 5, 2024 at 2:50 PM Ray Andrews wrote: > There really isn't any "parsing" per se -- internally, an "active" > pattern character is represented differently than its literal > counterpart. No way to see that unfold?  Anyway your word 'active' is the thing: Is that literal or is it active?  I know it's several decades too late to do anything about it, but if we had to do it all over again, I'd advocate for clear and *visible* ways of coding one or the other.  Mind ... when expanding a variable ... back to tildes!  A variable is by definition a symbol but what it contains could be another symbol or something literal.  Logical completion would demand arbitrary nesting of any combination. That's further than I need to go right now. But you know, it would save much grief if someone told you this up front but nobody does: "One of the endless problems with zsh -- or any other shell -- is that there are places where entered characters are presumed to be literal -- but can be forced to indicate some action or command -- and other places where entered characters are presumed to be actions -- but can be forced to become literal characters."  ... such a sentence would have saved endless grief if I'd read it on my first day using zsh.  As always I'm ruined by my knowledge of C, where there is never the slightest doubt. --------------ld7ciz9cx6EPdhkCfAQDcYsz Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


On 2024-01-05 15:27, Bart Schaefer wrote:
On Fri, Jan 5, 2024 at 2:50 PM Ray Andrews <rayandrews@eastlink.ca> wrote:
There really isn't any "parsing" per se -- internally, an "active"
pattern character is represented differently than its literal
counterpart.  

No way to see that unfold?  Anyway your word 'active' is the thing: Is that literal or is it active?  I know it's several decades too late to do anything about it, but if we had to do it all over again, I'd advocate for clear and *visible* ways of coding one or the other.  Mind ... when expanding a variable ... back to tildes!  A variable is by definition a symbol but what it contains could be another symbol or something literal.  Logical completion would demand arbitrary nesting of any combination.  That's further than I need to go right now. 

But you know, it would save much grief if someone told you this up front but nobody does: "One of the endless problems with zsh -- or any other shell -- is that there are places where entered characters are presumed to be literal -- but can be forced to indicate some action or command -- and other places where entered characters are presumed to be actions -- but can be forced to become literal characters."  ... such a sentence would have saved endless grief if I'd read it on my first day using zsh.  As always I'm ruined by my knowledge of C, where there is never the slightest doubt. 

--------------ld7ciz9cx6EPdhkCfAQDcYsz--