zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: egrep --color=always 'zsh\.'
Date: Tue, 2 Apr 2024 15:55:39 -0700	[thread overview]
Message-ID: <CAH+w=7YCQ6+jiMs-Lk+f3TkH7447D21DiR+ZRRYbfZENod=L+Q@mail.gmail.com> (raw)
In-Reply-To: <33cad64c-296c-4b70-b606-7a094b0a5a14@app.fastmail.com>

On Tue, Apr 2, 2024 at 3:46 PM Lawrence Velázquez <larryv@zsh.org> wrote:
>
> On Tue, Apr 2, 2024, at 4:53 PM, Ray Andrews wrote:
> > Right, I know that, my code sample was too lazy.  The only issue is
> > with the egrep.
>
> The solution is to stop using egrep.

Consider perhaps fgrep which looks for literal strings rather than patterns.

> "Preserving" the quotes, as you considered in your first message,
> would in fact break the command.

Obviously what needed to be preserved was the backslash.


  reply	other threads:[~2024-04-02 22:56 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 [this message]
2024-04-02 23:29         ` Ray Andrews
2024-04-03  8:18         ` Lawrence Velázquez
2024-04-02 23:26       ` Ray Andrews
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='CAH+w=7YCQ6+jiMs-Lk+f3TkH7447D21DiR+ZRRYbfZENod=L+Q@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --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).