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

illegal pattern with "-w -i B" and a comma in expression #19

Open
RolandRosenfeld opened this issue Jul 14, 2019 · 1 comment
Open

illegal pattern with "-w -i B" and a comma in expression #19

RolandRosenfeld opened this issue Jul 14, 2019 · 1 comment

Comments

@RolandRosenfeld
Copy link

I use agrep in ding.
There I searched for "Straße", which resulted in the following search command:
agrep -h -w -i -B -y -e "Strasse,Straße" /usr/share/trans/de-en
This throws the message
illegal pattern: cannot handle OR (',') and AND (';')/regular-expressions simultaneously
while it is accepted in the 4.17 version, found in glimpse without problems.
I tried to reduce the options to a minimum and found out that the combination of the options -w -i -B and a comma in the search pattern triggers this error message.
I did not dig deeper into the code yet to find out the root cause for this.

@Wikinaut
Copy link
Owner

Thank you for reporting. I will later try to reproduce your observations.

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

No branches or pull requests

2 participants