Package: ack-grep
Version: 1.96-1
Severity: normal

According to the manpage:

Ack-Grep searches the named input FILEs (or standard input if no files are named) for lines containing a match to the given PATTERN.

This is ambiguous, but I think the most likely interpretation is the following: If no files are named, standard input is searched. If files are named, they are searched.

Both possible interpretations are wrong anyway. In reality, the first thing that determines behavior is whether ack-grep has an stdin. If it does, stdin is searched (and named files are ignored: "ack-grep: Ignoring 1 argument on the command-line while acting as a filter.").
If it doesn't:

 * If files are named, these are the targets.
 * If no files are named, files in the current directory are the targets.


BTW, the man page is named ACK-BASE, for no apparent reason.

Reply via email to