zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: egrep --color=always 'zsh\.'
Date: Tue, 2 Apr 2024 16:26:48 -0700	[thread overview]
Message-ID: <3b523bcc-6b85-4066-96e2-243719893f34@eastlink.ca> (raw)
In-Reply-To: <33cad64c-296c-4b70-b606-7a094b0a5a14@app.fastmail.com>

[-- Attachment #1: Type: text/plain, Size: 903 bytes --]


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.

[-- Attachment #2: Type: text/html, Size: 1378 bytes --]

  parent reply	other threads:[~2024-04-02 23:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-02 16:33 Ray Andrews
2024-04-02 20:14 ` Lawrence Velázquez
2024-04-02 20:53   ` Ray Andrews
2024-04-02 22:45     ` Lawrence Velázquez
2024-04-02 22:55       ` Bart Schaefer
2024-04-02 23:29         ` Ray Andrews
2024-04-03  8:18         ` Lawrence Velázquez
2024-04-02 23:26       ` Ray Andrews [this message]
2024-04-03  3:42   ` Mark J. Reed
2024-04-03 12:50     ` Ray Andrews

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3b523bcc-6b85-4066-96e2-243719893f34@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).