Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the ack CPAN distribution.

Maintainer(s)' notes

ack's issues are tracked at https://github.com/petdance/ack2

Report information
The Basics
Id: 23525
Status: rejected
Priority: 0/
Queue: ack

People
Owner: Nobody in particular
Requestors: chris+rt [...] chrisdolan.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.30
Fixed in: (no value)



Subject: [WISH] Default to -a if target is a single file?
If I specify a single file as the target of ack, I would prefer that it automatically treats it as code. Something like this: if (@ARGV == 1 && -f $ARGV[0]) { $opt{all} = 1; } On the other hand, I suppose I could just try to remember to say "ack -a"... -- Chris
Sorry, no, I'm not going to have the behavior of ack dependent on the number of files it has to read from. However, ack IS a standard filter, so you can, instead of: ack -a pattern single-file do a ack pattern < single-file