GNU bug report logs - #68592
Grep 3.1 does not recognize regex beginning-of-line and end-of-line anchors (^ and $). on RHEL 8.9

Previous Next

Package: grep;

Reported by: Erich Wolz <wolz <at> us.ibm.com>

Date: Fri, 19 Jan 2024 21:15:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 68592 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Sam James <sam <at> gentoo.org>, Erich Wolz <wolz <at> us.ibm.com>
Cc: 68592 <at> debbugs.gnu.org
Subject: Re: bug#68592: Grep 3.1 does not recognize regex beginning-of-line
 and end-of-line anchors (^ and $). on RHEL 8.9
Date: Fri, 19 Jan 2024 21:37:38 -0800
On 2024-01-19 17:22, Sam James wrote:
> If you cannot reproduce this with the latest release of GNU grep (3.11),
> please report it to RHEL instead.
> 
> It works OK for me with 3.11.

For what it works, it also works for me with grep 3.1 running on RHEL 
8.5, in the C locale.

One possibility is that 'grep' is a user-interposed shell script that is 
adding some options of some sort. Or perhaps the GREP_OPTIONS 
environment variable is set to something squirrelly in the environment 
(this environment variable was dropped in grep 3.6 partly because of bug 
reports like this one).

The user can determine this by running the shell commands "type grep" 
and "env" and inspecting their outputs.




This bug report was last modified 1 year and 118 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.