beyondgrep/ack1

Implement grep's -e PATTERN, --regexp=PATTERN

Closed this issue · 3 comments

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.

The option that you are after is --match

Well, it would be nice to have -e / --regexp as an alias to --match to be interface-compatibile with GNU grep.

@jnareb ack isn't really meant to be interface-compatible with grep, but I'm migrating this to the ack2 queue, so we can discuss it there.