I could be wrong, but I think this is expected behavior. --type-add only
adds a type for the one execution, and the execution wants to do a
search. Try giving a pattern to search for to test your --type-add. If
it works, maybe add it to your .ackrc.
Ethan
First, you should use --type-set instead of --type-add to create a new
type. (--type-add is for adding extensions to an existing type.) That
will eliminate the warning about 'Type "drupal" does not exist'.
Second, you have to include --type-set every time you run ack. (Or at
least every time you want to use that type.) The simplest way to do that
is to add it to .ackrc. Note that every line in .ackrc becomes one
argument on the command line, so you have to use the double-equals syntax
shown above (or use two lines).
--
Chris Madsen pe...@cjmweb.net
-------------------- http://www.cjmweb.net --------------------