Running this command on a slow network drive:
ack --php PATTERN
causes ack to open large dictionary files with an extension such as .95.
ack looks at the shebang line of files where it isn't able to determine a filetype. This is to catch things where the program is effectively a script file without an extension.
But in the case of a foo.95 file, I'm not sure that's appropriate. Hmmm.
Ah, I didn't know PHP supported shebang syntax.
I think an option to control whether ack looks for the shebang line would suffice.
(Alternatively, a regex which specifies which file names to check for shebang lines - the default being files without an extension?)
ack2 will let users define how ack sees files, and you can then turn that off if you want. Everything will live in an ackrc file, and you'll be able to have per-project ackrc files, too.
See https://github.com/petdance/ack2/blob/master/ackrc for what we have so far.
Feel free to close this issue if you like, then.
I'm going to keep it open as a reminder. Thanks for bringing this to my attention.
This has been optimized away in ack 2.0.