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


View this message in rfc822 format

From: Erich Wolz <wolz <at> us.ibm.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>, Sam James <sam <at> gentoo.org>
Cc: "68592 <at> debbugs.gnu.org" <68592 <at> debbugs.gnu.org>
Subject: bug#68592: Grep 3.1 does not recognize regex beginning-of-line and end-of-line anchors (^ and $). on RHEL 8.9
Date: Tue, 23 Jan 2024 19:40:59 +0000
[Message part 1 (text/plain, inline)]
As it turns out, the regex example files in question were originally downloaded as part of a regex course module... and were in DOS format (something that didn't occur to me to even check).  After running dos2unix on them, the end-of-line anchor was recognized as expected.

This bug report can be closed.

Erich W. Wolz (wolz @ us.ibm.com), Senior IT Specialist
IBM Consulting - US Federal
12301 Kurland Dr., Houston, TX  77034-4812
Phone: 713-797-4645
________________________________
From: Paul Eggert <eggert <at> cs.ucla.edu>
Sent: Friday, January 19, 2024 11:37 PM
To: Sam James <sam <at> gentoo.org>; Erich Wolz <wolz <at> us.ibm.com>
Cc: 68592 <at> debbugs.gnu.org <68592 <at> debbugs.gnu.org>
Subject: [EXTERNAL] Re: bug#68592: Grep 3.1 does not recognize regex beginning-of-line and end-of-line anchors (^ and $). on RHEL 8.9

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.
[Message part 2 (text/html, inline)]

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.