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 29408 invoked from network); 14 Nov 2022 23:26:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Nov 2022 23:26:35 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1668468395; b=dk3Lt84mPivEsQZGwyLiOo6HG4/bCay8HwdwvpX8n4nGhKu2yyRmDELCvCU+MboN3C5sw0aAjv tkJFvWlyWlmt60X1GMvRvVLmJVyI9+H7PfrJVZ4ZhqKuq7FWRbn80R3lVfVOirG13bFx1Et0/L 9levsnndFQ645Pz9sY5/x0fgfWqggMcJAaS9W/JVB9LErASdmeXyO+9My9FTNjld2BRtUIrL0W /x3Df3Jw67unRstA7evGvAceBQWmSsPDBayxdL/axnJMsEo6C/ZOL7RbdBTh1jDlWKyDbY1iCR xHAoUQbfgWY4G7AASUT9pKkxyKf7F0vFdKxiD+2Xtyw1Ag==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; 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=1668468395; bh=S7IAyE7BNKUGZcwkWITVtinEn/E7TCA7uiNd+nLaKWY=; 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=HJmJAE3z8fYr9oTpyIL5bkmuDhBBXKiOGr0R2TODm3o6NgYUCkk8bqSFgNM5BSyDiqlYSEbpWe kA1cgX11z0mDfT4ArJx8YhKHqeDLMrwpgYHkw95ac7EHx4XU570UCDhCNrDlLJu8mQaqJyEA9y 2K32J62Rn8Urzd/DpBpK8NTlbKLRZoEjghWd7iNjmaenca/mk4x2ldiwYsImnL8OJX+7EeNHlV OFw5DHSeXI1U8gqbatikfcob73mCru7wEbgJ51SYUSR5Hr6gNftUAe734OOkNNXsRP3pA1x7pa M3V48js9l04ShP+TTBrzwHUBeSb3QbG5uao4OMWIqGIq4w==; 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=MC75SyXbbmKcA81C3hJkEjlAamj6m6LUuDcpdN3e/eA=; b=N9tJ2Ce/GvspCBdv/McXFdERNA fubiAUSsTq998j24yE08bUbJMPBbTXrBz4uPdA+mx5lvshXJbBEk/uSKVHdh260nm8v9ljs0doY12 GsAE5Aelk3UkH0hUwdsXnC31YoWLz12NrLyIeq4ffkbdOUX8rwY4ybSZXCTGIPsmkE9Kl39ntv6Rk 1gKwfYesKt1wuvGAY9zl0fjUKUkHSZWrc9F5zVLDQLBgn99/WV/+hNHqQpPX6a55LYGpOPuAYAp+X D66dbJcw3uMGraS5LivCmXlpLw9S3VeWEjWqpMwyK4YOb7dWw0kreCsIwiAxjWWWXuoXf5HJ/kFEy jZK/Mn1w==; Received: by zero.zsh.org with local id 1ouiqY-000JBb-WC; Mon, 14 Nov 2022 23:26:35 +0000 Authentication-Results: zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none Received: from mta04.eastlink.ca ([24.224.136.10]:54197) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1ouipf-000IVf-Ic; Mon, 14 Nov 2022 23:25:40 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta04.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RLD004A41TY7DL0@mta04.eastlink.ca> for zsh-users@zsh.org; Mon, 14 Nov 2022 19:25:38 -0400 (AST) Received: from [192.168.0.3] ([24.207.18.108]) by Eastlink with ESMTPSA id uipdo8H2wkffJuipdouEeT; Mon, 14 Nov 2022 19:25:38 -0400 X-Authority-Analysis: v=2.4 cv=Lbf6qBTi c=1 sm=1 tr=0 ts=6372ce72 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=cvshkUQVoL55ZfYgxksA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrgeefgdduudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrdefngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: Date: Mon, 14 Nov 2022 15:25:37 -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. Content-language: en-US To: zsh-users@zsh.org References: <6a92000c-dee5-a1e3-a77f-6a4697a66ab1@eastlink.ca> <34a949c4-0853-4c65-d2ad-db40749dff81@eastlink.ca> <2dd50dc8-cdbc-02e0-0e1e-485718732d0d@eastlink.ca> <3a10f310-3ee8-d3b4-f6db-7fdb18b81b1f@eastlink.ca> <77692192-70b3-8a6a-fd01-d5f8b37f59b2@eastlink.ca> From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28387 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-14 12:00, Bart Schaefer wrote: > > Yes, it forces a match of the entire string. No, that's not the same > as "greedy". Right, it seems to me that 'greedy' is perfectly defined and 'whole string' isn't it.  It's a rather subtle thing getting these pattern matches to do what a casual intuition might think they do.  Throw in a negation and it's not simple.  That line would be a good candidate for dissection in one of my imagined anatomy lessons.  Really, it's half an hour to completely understand it.