agrep icon indicating copy to clipboard operation
agrep copied to clipboard

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

Open RolandRosenfeld opened this issue 4 years ago • 1 comments

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.

RolandRosenfeld avatar Jul 14 '19 09:07 RolandRosenfeld

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

Wikinaut avatar Jul 20 '19 06:07 Wikinaut