On 06 Jun 2007, at 6:48 PM, andy@petdance.com via RT wrote:
Show quoted text> On Jun 6, 2007, at 8:28 PM, Matt Diephouse via RT wrote:
>
>> Well I want `ack -a --nohtml search-term` to search everything but
>> html too.
>
> That's what it should indeed do. Or rather, it searches every file
> type it knows about but skips the HTML.
>
> Yes, ack ignores stuff it doesn't know what it is.
Right, but -a makes it search *everything*.
So given these files:
known.c
known.o
unknown.filetype
1) ack --nobinary searches known.c
2) ack -a searches known.c, known.o, unknown.filetype
3) ack -a --nobinary does the same thing
There's no way to search just known.c and unknown.filetype. This is
really annoying in some codebases.
If -a and --nobinary are stackable, then (3) does what I want. Note
that right now (2) and (3) do the same thing. So making this change
adds functionality and doesn't take any away.
This is how I read -a and --nobinary:
-a: search all files -- even the ones I don't know about
--nobinary: don't search binary files
I think combining them should mean "search all files -- even the ones
I don't know about -- but don't search binary files".
--
Matt Diephouse