I was trying to change the colours used for matching temporarily.
But GREP_COLORS is global in nature.
--- Original Message ---
On Friday, May 27th, 2022 at 3:27 PM, Gary Johnson wrote:
> On 2022-05-26, Paul Eggert wrote:
>
> > On 5/25/22 13:48, goncholden via Bug reports for GNU grep
On 5/26/22 20:27, Gary Johnson wrote:
$ export GREP_COLORS='ms=01:33'
$ man grep | grep prevents
$ man grep | GREP_COLOR='01;32' grep prevents
Now, both results have "prevents" in yellow, which agrees with the
man page. However, the OP expected the GREP_COLOR setting on the
comma
--- Original Message ---
On Sunday, May 29th, 2022 at 5:36 AM, Paul Eggert wrote:
> On 5/26/22 20:27, Gary Johnson wrote:
>
> > $ export GREP_COLORS='ms=01:33'
> > $ man grep | grep prevents
> > $ man grep | GREP_COLOR='01;32' grep prevents
> >
> > Now, both results have "prevents" in
On 2022-05-28, goncholden wrote:
> I was trying to change the colours used for matching temporarily.
> But GREP_COLORS is global in nature.
An environment variable such as GREP_COLORS set by itself on the
command line persists in the environment after it has been set. An
environment variable set
On 5/28/22 11:19, goncholden wrote:
I agree on removing GREP_COLOR entirely.
Sounds good to me too. Proposed patch attached. I haven't installed
this, as I'd like Jim's opinion (we're reasonably close to a release I
think).From 751678df6afc21965c1c371ef10ab73f4ab4fa0c Mon Sep 17 00:00:00 2001