agrep
agrep copied to clipboard
illegal pattern with "-w -i B" and a comma in expression
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.
Thank you for reporting. I will later try to reproduce your observations.