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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24259 invoked from network); 11 Nov 2022 21:27:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 Nov 2022 21:27:35 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1668202055; b=PCZVLoE9I+wF4ASY/Dou1zAfAXsg9qQDLkXPIja+8m9UcMaoNA64wIeuJ6DTpDYAGyjcKDzytR uDYV/1rqB991sd/tHdHUcBPh/sUbfgbsU8PdHCES+77Ij5hGp7tcKInXB5kmq3m2wKtAvx5a6v B2pNipi4rI8dwa1q7D4Jxak6B8OPkEHqNm+wWESfadZTQnWYEghzwCBhJA5yJEGDUgWmrUut3l kO3xg7MnXcqI2Y4mRMScQNVsA1fhrmOREMJdnsqRAP9S3XfT/h8fYOCGGTrfKJIBPQjcgVAHPh K9vZJivUMu65Qb77Urad/Liq/sIlIkulszSmoQZeAiVf8w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; 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=1668202055; bh=2HZ60V8iz/P9xb7mVU3TlN6ilSSb0QxxaWaT+l18FqA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature; b=KJ0a115UwgVOlvhEEZy4LMzcoi3zcFwOZUDbWcSJlTfblz47JwQifaOaV6eRJxXIhxloel1pk0 mHrsGYhE2RO6JTfYQO8nh9yeNfjSf+Cx1vnkoSpPhA57YJyQKovH7OZ1KNqxKD79BU2LNoFEhn sZ1FtzJqAz0HhYe3+VpECqR0nSf4ouV9VVZpfbYSZGdDjA8LyhwoOoI9USM8La5PHprLm++WHg w3pKNr3DC+RffknGaSgxCZBjzsi7Uui02M3hGGJ7lHY7Vu88MsLGAi1d2fKAIm217t8p2YJNmQ hNFyOAVzfiLaW7MJBFuJeVQym43S615Rwy8MsudidttVMg==; 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:From:References:To:Subject:MIME-version:Date: Message-id:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=7aJksFnCOdd0G+SMfVhaJo+BlgAz0c/uEUju33BL/9g=; b=PBgdBoGymnMcD4vWL47dfdGcck kHjV6SpMCapSXqsXDt4Ok0Dpdvzqz8QpUSJ2H8PIckG2nzZCry6emd7rLG3UE/QTtdbhpjoqODNGq SYOdM9Iax2DXv8Qb0MMCmTjDeHRhDyAn0gnoEVJruyt1NIiRFTvD/N0f3D9jTertbsux8TqSYKaxE NSwo/EMEcuzWGX/XK/AgPvAW8d8W/hCWcJVKW7isAOXspUrnLtvbMunRnJk/H3fTZV0LpcFzkUN+z TNg1q438C1jYoc5vBDIzvSSu+VSfzTmcZ2x71FBRz+izvdUyV9U0B0H9U14cY82IAwKZDg2HmAN+H zEgOEhjA==; Received: by zero.zsh.org with local id 1otbYk-000CQB-4G; Fri, 11 Nov 2022 21:27:34 +0000 Authentication-Results: zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none Received: from mta02.eastlink.ca ([24.224.136.13]:55720) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1otbXm-000Bhk-FL; Fri, 11 Nov 2022 21:26:35 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta02.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RL700PVXCPJ5B11@mta02.eastlink.ca> for zsh-users@zsh.org; Fri, 11 Nov 2022 17:26:33 -0400 (AST) Received: from [192.168.0.3] ([24.207.18.108]) by Eastlink with ESMTPSA id tbXkoyQiCkffJtbXkosngt; Fri, 11 Nov 2022 17:26:33 -0400 X-Authority-Analysis: v=2.4 cv=Lbf6qBTi c=1 sm=1 tr=0 ts=636ebe09 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=ZkvPBPLQAAAA:8 a=JmKwbjw2i6fDSc_Hy9sA:9 a=QEXdDO2ut3YA:10 a=hPUHRLZocSYA:10 a=2agkgkALAIYA:10 a=SFr2u9Cu4sbnRqnMvguH:22 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrfeeigdduhedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepteevkeehvdfgiedugefgfeeftedugffhieffveefvdfhkeffkeefledttddulefhnecuffhomhgrihhnpehsohhurhgtvghfohhrghgvrdhiohenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrdefngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <2dd50dc8-cdbc-02e0-0e1e-485718732d0d@eastlink.ca> Date: Fri, 11 Nov 2022 13:26:32 -0800 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: coloring substitution seems to eat next line. To: zsh-users@zsh.org References: <549715c2-8b36-8b7e-e3ac-cac02f43dd0f@eastlink.ca> <0a7dbe0d-1554-269a-f420-bfe320c7c838@eastlink.ca> <6d7ba212-be9d-6bb4-f5ce-9a796032ade0@eastlink.ca> <6a92000c-dee5-a1e3-a77f-6a4697a66ab1@eastlink.ca> <34a949c4-0853-4c65-d2ad-db40749dff81@eastlink.ca> Content-language: en-US From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28375 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 2022-11-11 11:25, Bart Schaefer wrote: > Because I'd never seen anything like that before and I had no idea where >> to even begin looking for an answer. God knows how many tools are out >> there that I've never even heard of. > I find this response baffling. Roman wrote "local MATCH ..." so > obviously it's a zsh thing. Even if it might be another tool, at > least try checking the zsh manual first? > Obviously but he showed it to me before I knew there was any such thing to look for.  If I have need of it again then I'll be sure to read up on it.  For now, it's water under the bridge. > https://zsh.sourceforge.io/Doc/Release/zsh_6.html#index_split-5_vr_letter-M Tx, now that I know there is such a thing, I'll read up on it. > Isn't that also true of a glossary? Not exactly.  The sort of thing I have in mind would be purpose built to explain zsh anatomy.  It would show you sample code and then 'dissect' it for you, explaining what all the bits and pieces are called and how they function.  You'd get an understanding of the structure of the thing at the most zoomed out level.  Anatomy 101. > > I mean, go back to the mention of how you've never heard of $foo:t > before. Well, gosh, look up "colon" in the concept index: You have me there.  I was pleased to find out you could search for 'colon'.  Searching for ':' was obviously not much use.  Sorta like just recently the ':#' construction.  You won't have much luck googling for 'zsh'  ':#' you hafta know ahead of time the name of those sorts of manipulations.  'parameter expansions' no?  Once I know what to call it, I can zoom in on the correct part of the manual. > Now you know it's called a "modifier" so when you see $foo:A you know > where to look. > > Or you could look up "substitution" Nuts, I thought I  had it right with 'expansion' :(  But yes, that's the thing, '//'  ':#'  '%%' ... these are substitutions.  So  yeah, that's the magic word that takes me to the relevant information. Without the terminology one is quite lost. > > https://zsh.sourceforge.io/Doc/Release/zsh_4.html#index_split-3_cp_letter-S > > where you find that for parameters it's usually called "expansion" and > expansion has flags and oh by the way there's even a set of expansion > "rules" that will tell you all about the procedure zsh follows to > perform one. Ah! So I was right the first time. Yes 'expansions' even when they are contractions -- doesn't matter what the word is, just so long as I know it. > > Or you could just scan through the concept index to get an idea of > what terminology you're likely to encounter on this list, without > having to read the whole manual. My imaginary glossary would be specifically designed to get you up to speed on terminology.  Anyway it IS time to do some reading.  Anecdote: when I first tried Linux, coming from DOS, one of the first things I wanted to find out was how you write a batch-file.  Googled, nada. What?  No batch-files in Linux?  Well yes, but they're called scripts.  And switches are called options.  And variables are called parameters.  And so on. Getting the lingo straight should be done up front with a purpose built document for that. >