beyondgrep / ack2

**ack 2 is no longer being maintained. ack 3 is the latest version.**
https://github.com/beyondgrep/ack3/
Other
1.48k stars 138 forks source link

--ignore-dir still applies to a directory I explicitly specify on the command line #492

Closed hoelzro closed 4 years ago

hoelzro commented 10 years ago

For example:

$ ack --ignore-dir=nqp nqp/ -f

I expected it to continue searching the nqp subdirectory anyway, since I told it to, and ack seems to have a policy of "if you explicitly tell me what to search, I'll ignore my rules and search it". The analogous command for a file works fine:

$ ack --ignore-file=is:INSTALL.txt INSTALL.txt -f
INSTALL.txt
voidus commented 9 years ago

This is really annoying

petdance commented 9 years ago

ack seems to have a policy of "if you explicitly tell me what to search, I'll ignore my rules and search it".

Yes, that's intentional.

I'm sorry the --ignore-dir stuff is a mess. :-(

voidus commented 9 years ago

Don't be. It's just something that needs work :)