Andy Lester wrote:
> I believe the README has a big section on that. There are many ways
> of specifying types now. It could be that one of the default rules is
> wrong.
I had read the README, which doesn't describe how to define types.
However, the man page does so I was able to define a type by file name
regular expression.
>
> In fact, would you please make a ticket in the ack2 queue showing the
> behavior, including what command line you used, and the fiel that is
> misidentfied.
>
> You should be able to do
>
> ack -f --shell
>
> And get only shell files, and if you get anything else, then that is a
> problem.
Yes, that is exactly what I did and was quite surprised that it found a
file which is definitely not a text file. Digging deeper, I found that
--shell produces many false positives, including HTML and JPEG files. I
can't share the internal company document that was the first false
positive I noticed but I did find that a file containing nothing more
than "English" (which appeared on the first line of the document) will
be considered a shell script by ack. I will make a ticket.
--
Jonathan Rogers