Implement grep's -e PATTERN, --regexp=PATTERN
Closed this issue · 3 comments
jnareb commented
Currently to specify regexp that looks like option specifier i.e. beginning with '-', e.g. when searching for '-pg', one has to use
ack -- -pg
It would be nice if ack implemented -e PATTERN / --regexp=PATTERN that GNU grep uses.
brucewoodward commented
The option that you are after is --match
jnareb commented
Well, it would be nice to have -e
/ --regexp
as an alias to --match
to be interface-compatibile with GNU grep.