Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weird behavior of pcre2grepcd #146

Closed
omihara opened this issue Sep 13, 2022 · 1 comment
Closed

weird behavior of pcre2grepcd #146

omihara opened this issue Sep 13, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@omihara
Copy link

omihara commented Sep 13, 2022

$ echo 'aaa bbb' | pcregrep --color -e 'aaa' -e 'bbb'
aaa bbb
("aaa" and "bbb" are colored.)

↑↑↑↑↑↑↑↑↑↑
THIS IS OK.

$ echo 'aaa bbb aaa' | pcre2grep --color -e 'aaa' -e 'bbb'
aaa bbb aaa
(only "aaa" are colored, but not "bbb".)

↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
What do you think?
(”bbb" also should be matched and colored, as it is with GNU egrep?)

pcre2grep version 10.39 2021-10-29

@PhilipHazel PhilipHazel added the enhancement New feature or request label Sep 14, 2022
@PhilipHazel
Copy link
Collaborator

I have updated pcre2grep in HEAD so that it now behaves like GNU grep (having had a bright idea as to how to do this without too much complication). This version of pcre2grep will therefore be in the next release, which I'm expecting to be out before the end of the year. I am therefore closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants