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 25358 invoked from network); 13 Nov 2022 15:10:33 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Nov 2022 15:10:33 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1668352233; b=rxkNkq5Zx8SRofogAvuHBov72y7l/P88ELtXZQHnnBAI/LU+cDxHAZRLkKPNfYvYbPgZ0NYMUC z5A4qQrB/0GWJ2Ft5jaVssvxwqVUcGGOH6Fee+QxflYfLJepd6mJ9qSvu7a7NO/BiQMuzpcTZy h7aACzZ/0aVN62oKV9o7qu66kPE3fPE2jxr7fifWnqen5ILx8FrJR61zZjm2YeroVC+ELKDpS3 0ecqyd16L8+ZMcFWCHc14q0kRrk5v2qIj+X15cHEv5qMjLygLulYMieg0VdO8orWSrucu4BYDL 9yhnrsVUg0Q4YnYV2KyH5kta024z3CoE2/C2jFMK+J/70g==; 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=1668352233; bh=eAYh7I8pmhSQH1yLO75hgNlRbWYa5g951LwcdTZSz2U=; 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=PYEmYUT/rvWYQBjqtYRlRgk4FGXjA4hdRt4KRPHJ5u9eNmRDWVLAr5jUQSoCVV8FLU1hRxMsL9 ik/EVe+1yax06qQrT1PpSiHAzbOVocVZft60Hjytsc/otQr5h3POATr/AyVi+PDfd+jezt1Gq/ jFtZYX7bVXVInK4JCfgar1iF+/ylJ/o6BkqPm9tFPkzaDP6iGufYr9ext/YE+YoVJAwE5gLNBs dGIUu0jcGMhwuyk4UOfUKeZm9uTMdtd1sVvblLx4SF895x9ccM5gboe43cBrKzRNM0+j4WlAA8 5TTFgXC5TYpmGv3TsGbmuTbwFeBzKqpu2A5e8U7sD2PoUw==; 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=tJUguRFzpdwhTX1TExXJtTFtpKni9sULGeH/FJ6p1NY=; b=CCgAhbvWa23T1diG2T5TIzAljo GRRdeYoDQEx3wOEH7p9ycyf2KiqVzj5B3nG+G//U+TAjn0WqDS0jKVjwxKNfPe3v4JNWhXfxc0MVA Mu6AAnFTbyElxGKTe7Dge4Rw2tvvotbGFMGbHJg3B1nw5yFHRIfZxwCe76SfE/COex+ffxA20O+Tq Ziu0mh0zBRcRYTBK+jJpImhWvKKzbjUEOfcmCaouzndvOwb9cSefQLM6BhS+Yg492FjJ9gb3hwYRG L0jOuMwNTF/tikXHl3YJiPMD/fuTA1U1FsSzta7ObIgLAjTZC9DmhuWsI+gIm/idUbGN1oLOK6sza C1CxYaUA==; Received: by zero.zsh.org with local id 1ouEcy-0009eP-PY; Sun, 13 Nov 2022 15:10:32 +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]:42802) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1ouEcF-0008ua-Gq; Sun, 13 Nov 2022 15:09:48 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta04.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RLA005NQKG6DU71@mta04.eastlink.ca> for zsh-users@zsh.org; Sun, 13 Nov 2022 11:09:45 -0400 (AST) Received: from [192.168.0.3] ([24.207.18.108]) by Eastlink with ESMTPSA id uEcDoB6flgfyjuEcDodtbG; Sun, 13 Nov 2022 11:09:45 -0400 X-Authority-Analysis: v=2.4 cv=M9uLaQ8s c=1 sm=1 tr=0 ts=637108b9 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=yO-y3nSRnnYKoJPJ5UQA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrgedtgdejgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrdefngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: Date: Sun, 13 Nov 2022 07:09:44 -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: <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> <2dd50dc8-cdbc-02e0-0e1e-485718732d0d@eastlink.ca> <3a10f310-3ee8-d3b4-f6db-7fdb18b81b1f@eastlink.ca> Content-language: en-US From: Ray Andrews In-reply-to: <3a10f310-3ee8-d3b4-f6db-7fdb18b81b1f@eastlink.ca> Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28381 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: Roman:             cc=( ${(M)cc:#*$~zsh_case${filter}*} ) I've been applying that in some other functions but I need a variation that will erase non-matching lines but leave them as blanks so that array indexes do not change.  Reason being that a subsequent merge with another array will happen and indexes must mesh.  I'm doing it right now by using a dummy string as replacement for a non-match and then combining the arrays and then deleting the dummies but that's obviously clumsy.