bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#68592: Grep 3.1 does not recognize regex beginning-of-line and end-o


From: Sam James
Subject: bug#68592: Grep 3.1 does not recognize regex beginning-of-line and end-of-line anchors (^ and $). on RHEL 8.9
Date: Sat, 20 Jan 2024 01:22:19 +0000
User-agent: mu4e 1.10.8; emacs 30.0.50

Erich Wolz <wolz@us.ibm.com> writes:

> Steps to reproduce:
> 1) create a file containing the following lines:
>    foo bar baz
>    bar foo baz
>    baz foo bar
>    bar baz foo
>    foo baz bar
>    baz bar foo
> 2) The command "grep '.*bar$' filename1"  should find the two lines ending in 
> "bar" but it does not.
> 3) create a file containing the following lines:
>    foo
>    foo bar
>    baz foo
>    foo bar baz
>    baz bar foo
> 4) The command "grep '^foo$' filename2" should find only the first line but 
> it does not.
>

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]