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 15535 invoked from network); 12 Nov 2022 03:37:51 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Nov 2022 03:37:51 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1668224271; b=df1fu6fRTWi+o6s0JE8NfXSrt1tAQx8dL8GPwcbG+NRumdc6JQHKNxcbDF0GKbByNV6Ot53RMB BtYoNAE/8zh2PMxuSEUI6k6Pus/NfAcPryYQ3Z9SVQlMIISvYYkpTy7ZEUeLlGqArR/ZXolS7S NRvqxfuDAV+vb0CefmaCuOzhTj7EC/OK4Hv7Qnp71wmtIbOHTNxA4ECvmwBjFqK8tbI0OzcO9g qKsbOfy9RzGFGigKvWUjzyF+ecGdGaUUdmLbuVJTXzwso244kD2+Wr5bf9UtmCR6+V4q33G/K1 HksNswe2vuD3XS+hgk7VNULuSK8TixX92bFfEAMcS0B/tA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; 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=1668224271; bh=6ERuw1WtgibOsZ2IPmvdLcbZhQux60jL37MeV0bu2Tc=; 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=gTao6MDW5dB8Tl1WphMKETFWEr6FAmyP97fwOWKLHOBQvDft+a6M4SA/cK92ZJmvgfMU82ZPpC DeMkKIH86P3phbZqivjt3CR4i2oTkC8Z7Skpg8aiARLy8CnPSwUFk0I8EB9Zr9AQ/MkTRScBwA aHq5CJs++NLZyRl0SrCa8J3hPhmrKdoGI0U7Owa4gGgC4wpynqnqHVNOQPhcpsQO1UWOkbPFmi J1lH5B4BLDkgccUk1YIWROzaeCWqxvP+R1+WwwsCKOy93qug5ZDvOHIW/+x02PYId8a5B+f7hQ m9yLOv+edbr2E1JxnZhC1cqtIl9iymLpTIoxc9r6lGMBtw==; 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=Lpkmofp71IpoZTu4C2sWzrB3p78dJFnIMTLMN/n59DU=; b=cVmjNQ/N2v2/kNKnFnzwiGgvMF jfNZKkeVydivQwmMeOAtRux9Ujirir62BGhn1s16puhXcDqXGuFj/uVGV5lHCB0/Q10SkqJSZ04IA p6gaW+hTbRt8+olcIlCgDD0t3giOZyMEYvFg3Wl4h/BHqhEiSyzM9Oh3F8XOGTutMtQQhIE059pmy 3HhnT3nwUav623FK1j9Os6z5a8MUikXSiGFT9zjTd5CiwVAwU8cXXBrqTvkLi3P0SwzhT5Lg3Sek9 +7a/h+Kz+iGOWZcK470XYyEMRn2guigasr/OsZprJ+F6zLUYafuC4NZtfPHb7Gm/raXSk/OrSe5U2 4N9ySzqA==; Received: by zero.zsh.org with local id 1othL3-000OlJ-KL; Sat, 12 Nov 2022 03:37:49 +0000 Authentication-Results: zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none Received: from mta03.eastlink.ca ([24.224.136.9]:45672) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1othKF-000O4d-5A; Sat, 12 Nov 2022 03:37:00 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta03.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RL70091FS1UMQ41@mta03.eastlink.ca> for zsh-users@zsh.org; Fri, 11 Nov 2022 23:36:57 -0400 (AST) Received: from [192.168.0.3] ([24.207.18.108]) by Eastlink with ESMTPSA id thKDo6z2FgfyjthKDodPqW; Fri, 11 Nov 2022 23:36:57 -0400 X-Authority-Analysis: v=2.4 cv=M9uLaQ8s c=1 sm=1 tr=0 ts=636f14d9 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=4oE1Y6iLfNusgh4ebAUA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrfeejgdeitdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrdefngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <84906280-adcc-e6da-2963-141a5eb29799@eastlink.ca> Date: Fri, 11 Nov 2022 19:36:56 -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 a substitution To: zsh-users@zsh.org References: <5454df12-02c6-75b5-e552-c486e231183c@eastlink.ca> <1b44b09a-ebae-a45d-a19d-c83e1ce68f65@eastlink.ca> <6042df79-449b-93fc-0d2a-dc990b552c70@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: 28378 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 14:39, Roman Perepelitsa wrote: > > These four cases are {case-sensitive, case-insensitive} x {full, > partial}. Moreover, the implementation of every case differs only on > these two bits: case insensitivity is always encoded as (#i) and > partial match always as *..*. It is better.  More consistent.  I have no idea if the internal machinery is different but anyway the performance is identical. > > The only bizarre thing here is the names of these cases. Don't worry about my naming, that's all just fooling around, but every one of my functions has these same four cases and I'm trying to work up a universal way of talking about it that compact since sometimes I have longish messages and making them as compact as possible is a good idea.  I'll keep fooling around with it. > Can you similarly describe these four cases, the way I've done in the > first paragraph above? I cannot. All four look uniquely different, so > the inventive names (BROAD, TAME, WILD, EXACT) almost look justified. Right now I'm leaning to ?? FULL PARTIAL and EXACT.  But what's better than BROAD?  I don't like it, need something better.  Tho I do like WILD, because it's intuitively suggestive of wildcards. Not that it really matters, as I said this is entirely for my own use. Thanks for the help, I learned a great deal.