From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id A957C21BE6 for ; Tue, 2 Apr 2024 18:34:02 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1712075642; b=hWe4x8HQ3RjbY+D0yU6vH+8pwE0OcJeTLgbZE6ie9RNa6tJkUNsHP8BWCEEf9UYLF1UYPzL97h TdzEOqeK9NVgjOiKFtIHUQXoNT2kIEdwZedEET0xb/flw3tolI8w2N8QFYaZWT2kQoegL5zTsy xO/FEh2b8r88qztVi1thADIZMlqF2y5fajwrW8LgylrXvSPyiBO5UqF0T4dlVuU1PODj92YdNs Mpm6GeHjUYShPVBWx8uDazosKp1pTm9ncX/Hw1+vvUvNA/80laDAYgzKRfnpw33qYtPGXKejf4 7hJcpGylKG74z7L0heDx2wsgIStoOGLJchWmKnz0U8ikKg==; 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=1712075642; bh=d6ToSi5oFedqyxscywLi4rt3CfJqwQb0CTRnWou0hBw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Subject:From:To:MIME-Version:Date:Message-ID:Content-Type: DKIM-Signature; b=RYbODcSSQ4X+CdXwlmcWRFEiCjh9400lLuY7d51U8kYQV6XL1XkANv2gwjZxzftStrHjl+758C SS4kRTbClLY0Si5xu2eT08+Ik2Npk2CNUVfhq2xCC0o5RkFUvEUSqGiFCF8eBy5rdX3i3of7hP ynG8F5tTzRMgYiFs3VsenD1Ur4BTELAW5qlYteXbk9YBp20fzunjVPgqfseXE1ywzx2Uramp4g ywnPwOv1JKBj4+viG9/BQvJ239vnzR91dsoMOE1A+4HAUpvQ1FEJKyi3ILT47FFdzefRs2b4j+ u9ZOvXCTfUCZVEMvM8sqyobnFv4S0j8fCWBaiCMMcashTA==; 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:Subject:From:To: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:In-Reply-To:References; bh=5nzZOoh7EmcDloDgFQFKgMS6sK5M44QSjlotOcQMrdM=; b=EZeMxXT6B4gbEr3VWO5CjQ6iHb 2Pa6cetzhKbfuUP30BaJURZgDVjshtmhnnb0LUeecglvOaEcLqg9U7rTyFRdP6iK/+B2MWflYMSFd pa6ikHUypLC9Kfa5j+vtxXtUgNR+mhZzgOFT176juFK42C3wHyp8cntnMPnQtyK3VMMHIUe4W+hy+ NcjbrzNMGFH0o6wPHcxjSoZg3/DVqx+0GQd1OTIasVzZXnxa8gRvL16PQs3fjxGHuXQBxYaU0+k2S Wo8wir13RkbDn8QQaV+rRIe831dVXd+W059r8s+UfTQQe52NPbeZ+HCzf+Gi2vXtF9Xq+PmwZ+kQj PDsyu5zQ==; Received: by zero.zsh.org with local id 1rrh5E-000GfC-6e; Tue, 02 Apr 2024 16:34:00 +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]:41303) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rrh4N-000Fz3-Mm; Tue, 02 Apr 2024 16:33:08 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta01.eastlink.ca ([24.224.136.30]) with ESMTPS id <0SBB0BOFMPOQ2330@mta01.eastlink.ca> for zsh-users@zsh.org; Tue, 02 Apr 2024 13:33:06 -0300 (ADT) 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 rh4LrrRjC5Tsrrh4Mr7aFm (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Tue, 02 Apr 2024 13:33:06 -0300 X-Authority-Analysis: v=2.4 cv=deIj3mXe c=1 sm=1 tr=0 ts=660c3342 a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=ogAuja8u12iM45fg7_IA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=ZXulRonScM0A:10 a=zZCYzV9kfG8A:10 a=Hq-JEtNM26WZpfR8u8oA:9 a=wI0sjwQnPKuSyCgT:21 a=_W_S_7VecoQA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudefvddguddtfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurheptgfkffggfgfvhffusegrtderredtvdejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeffeeivddtkedvgfetkeevudfhtdeltdegtedttdekieffhfeuhfekheegtdevteenucfkphepvdegrddvtdejrdduledrudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdduledrudefpdhhvghloheplgduledvrdduieekrddtrdduudgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: -100 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------47TihNaRSPXySMyG3fh8Ake6" Message-id: <7318f96a-c6ff-426b-aa64-93b8ea6ee9c1@eastlink.ca> Date: Tue, 2 Apr 2024 09:33:05 -0700 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Content-language: en-US To: Zsh Users From: Ray Andrews Subject: egrep --color=always 'zsh\.' X-Seq: 29763 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. --------------47TihNaRSPXySMyG3fh8Ake6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit     % apt-file search zsh. | egrep --color=always 'zsh\.' ... if using egrep, the above makes sure that the dot is taken literally.  I have a function that ends up trying to create the above:     % func 'zsh\.' ... which will attempt:     apt-file search "$1" | egrep --color=always $1 ... and it works fine unless I want to force a literal char, as above.  zsh is removing the quotes as she properly does, but in this case I need to preserve them since egrep needs them.  I know I've done this before.  Something in the (Q) continuum?  It has to be egrep since I normally want the regex interpretation, it's just this odd case where I need a regex char forced literal.   I know it's doable. --------------47TihNaRSPXySMyG3fh8Ake6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit     % apt-file search zsh. | egrep --color=always 'zsh\.'

... if using egrep, the above makes sure that the dot is taken literally.  I have a function that ends up trying to create the above:

    % func 'zsh\.'

... which will attempt:

    apt-file search "$1" | egrep --color=always $1

... and it works fine unless I want to force a literal char, as above.  zsh is removing the quotes as she properly does, but in this case I need to preserve them since egrep needs them.  I know I've done this before.  Something in the (Q) continuum?  It has to be egrep since I normally want the regex interpretation, it's just this odd case where I need a regex char forced literal.   I know it's doable. 


 

--------------47TihNaRSPXySMyG3fh8Ake6--