Bug#676235: [ack-grep] Incorrect target files (stdin)

Filipus Klutiero chealer at gmail.com
Tue Jun 5 14:50:50 UTC 2012


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20120605/19132d39/attachment.html>


More information about the pkg-perl-maintainers mailing list