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=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI 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 93A6D2176C for ; Wed, 3 Apr 2024 01:27:33 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1712100453; b=nCjdkCzJRUJopYfSqQM2jidT1/0D7xZZS6Jcv+QVOjq9VkpCBBDkk8Xnii2jdqH8txi2dtmPuE gBSOhW+aWonV9zIGxgMakwtxGfpPQ61MzQDofVyVlzJaIp9JVZmCySZZBx81iO6HEq4q3NSDi4 VXChKwTje2rskeb9chPVo9o5ZI69AOD8LXTVdeLf5ftZxJerj96Z9BSvpHBTKOUvhvGTH8fCS1 0WffgGRxNfHD3YNPPTqyZhPHFlWRWduXybsb9a8MFI5rf/wZIQKDmqJTJQ96PKwUr/VuGHk6Zh ZzZrbvGHOnYUsWlevCrOkL2NDLs4V8PrsF1M2VN5v0Aaqg==; 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=1712100453; bh=jXvYbF/OfpM8BH2JfB2RS/0nYDbGhrcrD8qSCUb0sSE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Content-Type:DKIM-Signature; b=e1M4JZ9aeMB9VqjEw9WX9TSXbS5MJV/LVX01egHbQKSSzIseq9mtPOjH3hn/b3gbmAH7tpEagA B9wrCXqipBfGH8Xg8OkQs4NBQciZGKFsX324VPAtCSwTK8qZC4gKUgmaRI2/We9gQkrXzIsk/d HNoz3AU62qIhgbgDlNlxTTKS9rDwaXcvyNHRH8/iLrawU5i6bdJkb6KxKyR5hF7McuJSdzfraU FDsW8of52yUkHRSsF43OBUT5+9Ev0BBGT/abeEr2Zwfv2UF+0fD5ulNblyhl/wIApgHDrrfyWH OLt8ynueCh4CsiXvHHJzynokt/Az9WxT+pNupAx+I2blEQ==; 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:In-reply-to:From:References:To: Subject: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; bh=MzAXv6rl7Drk90+Qb6YFIPWjYOw8eseHykjuAZZyNc8=; b=n5cmdmUgiFeKIisMTS1PtdHQsL lVHxkYbZjwkb1Pkxf403gAcDMmRYl3hv1bWXELhr2vL7Orbam9Y2V8t4OXPvO5pYxsIVt6ed5jKhr I5EclNBIfPwQS9teLwkNwx5g0UTZ2LYUFvZkDQQocr2yIOuZVhR+JXPA3CpFTeHK3pKYj3OZrlvkT WH83N/JwAzSRMkxzpez+bDIRku2Yc+vkHgEK59YCS4PBlJxpPKvbDGRu+d3UIIoymFi3se6iovQTd hvxHAl5FQt4Vja0FsywJf2gm5XPY5ya5iOpPSMUiK5UfhQwCtQT+zdxy4kEtaxhnmD5GVzW/FpJ5D RnuV1ybg==; Received: by zero.zsh.org with local id 1rrnXQ-0009Be-Te; Tue, 02 Apr 2024 23:27:32 +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]:45923) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rrnWk-0008UU-G6; Tue, 02 Apr 2024 23:26:52 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta02.eastlink.ca ([24.224.136.13]) with ESMTPS id <0SBC0AAL89358OG1@mta02.eastlink.ca> for zsh-users@zsh.org; Tue, 02 Apr 2024 20:26:49 -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 rnWirsQ0n5TsrrnWir7og2 (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Tue, 02 Apr 2024 20:26:49 -0300 X-Authority-Analysis: v=2.4 cv=deIj3mXe c=1 sm=1 tr=0 ts=660c9439 a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=nYC59GJK3o_j6iLQJ18A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=ZLGELXoPAAAA:8 a=XsONbd-yYbH8wwKqh5UA:9 a=LS1vhpgXcH2TkV9H:21 a=_W_S_7VecoQA:10 a=CFiPc5v16LZhaT-MVE1c:22 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudeffedgvddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurheptgfkffggfgfuvfhfhfgjsegrtderredtvdejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpefhteethfevgeeuvdelgefgvdevudefueduffdvgfelvddvgfdtieegueeuleeifeenucfkphepvdegrddvtdejrdduledrudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdduledrudefpdhhvghloheplgduledvrdduieekrddtrdduudgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------iwNLaxtidgBuGpxjbWHRdnsN" Message-id: <3b523bcc-6b85-4066-96e2-243719893f34@eastlink.ca> Date: Tue, 2 Apr 2024 16:26:48 -0700 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: egrep --color=always 'zsh\.' To: zsh-users@zsh.org References: <7318f96a-c6ff-426b-aa64-93b8ea6ee9c1@eastlink.ca> <85dd54c7-d221-4c19-b3f5-8d8d251529f2@app.fastmail.com> <33cad64c-296c-4b70-b606-7a094b0a5a14@app.fastmail.com> Content-language: en-US From: Ray Andrews In-reply-to: <33cad64c-296c-4b70-b606-7a094b0a5a14@app.fastmail.com> X-Seq: 29770 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. --------------iwNLaxtidgBuGpxjbWHRdnsN Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-04-02 15:45, Lawrence Velázquez wrote: > It is easy to escape characters that are special to zsh itself. > It is not so easy to escape characters that are special to POSIX > extended regex. (The rules are hardly impossible to work out, > but they're not straightforward either.) I think that's the crux of it.  I do understand what you're saying. If there were a fix via some form of quoting or whatever, I'd use it, so I thought I'd ask, but as you say, there are more robust solutions.  I'm fishing for something easy but in practice this is hardly an issue, I'm just interested in the principle of the thing. I've come to learn that zsh can do almost anything if you get the invocation just right. Meanwhile it would sure be nice if the world could standardize on one set of regex rules.  I haven't learned perl but they say it can do anything you could imagine doing and more. --------------iwNLaxtidgBuGpxjbWHRdnsN Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 2024-04-02 15:45, Lawrence Velázquez wrote:
It is easy to escape characters that are special to zsh itself.
It is not so easy to escape characters that are special to POSIX
extended regex.  (The rules are hardly impossible to work out,
but they're not straightforward either.)
I think that's the crux of it.  I do understand what you're saying.  If there were a fix via some form of quoting or whatever, I'd use it, so I thought I'd ask, but as you say, there are more robust solutions.  I'm fishing for something easy but in practice this is hardly an issue, I'm just interested in the principle of the thing.  I've come to learn that zsh can do almost anything if you get the invocation just right. 

Meanwhile it would sure be nice if the world could standardize on one set of regex rules.  I haven't learned perl but they say it can do anything you could imagine doing and more.

--------------iwNLaxtidgBuGpxjbWHRdnsN--