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: 28593
Status: rejected
Priority: 0/
Queue: ack

People
Owner: Nobody in particular
Requestors: MSCHILLI [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.64
Fixed in: (no value)



Subject: Shouldn't 'text' files be searched by default?
Just decided to give 'ack' a try. So I searched for my user name in /etc/passwd: ack myuserid /etc/passwd No result. What? Turns out that I need to say ack --type=text myuserid /etc/passwd Two questions: Shouldn't a) Shouldn't "text" files be considered to be "interesting" by default? b) Shouldn't ack just search the file if only *one* is given explicitely, regardless of type? Or maybe print a warning in this case.
Subject: Re: [rt.cpan.org #28593] Shouldn't 'text' files be searched by default?
Date: Tue, 31 Jul 2007 13:58:30 -0500
To: bug-ack [...] rt.cpan.org
From: Andy Lester <andy [...] petdance.com>
On Jul 31, 2007, at 1:41 PM, Michael_Schilli via RT wrote: Show quoted text
> a) Shouldn't "text" files be considered to be "interesting" by > default?
No, because then it's just grep. Show quoted text
> b) Shouldn't ack just search the file if only *one* is given > explicitely, regardless of type? Or maybe print a warning in this > case.
No, because who knows how it's being specified? xoxo, Andy -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance
On Tue Jul 31 14:59:06 2007, andy@petdance.com wrote: Show quoted text
> > On Jul 31, 2007, at 1:41 PM, Michael_Schilli via RT wrote: >
> > a) Shouldn't "text" files be considered to be "interesting" by > > default?
> > No, because then it's just grep.
Not really, since you can still override it. I'm just arguing about the default option. I'd argue that most people will find small text files interesting. I realize I can set this in my ACK_OPTIONS, but I think it's confusing to people who use ack for the first time. Show quoted text
> > b) Shouldn't ack just search the file if only *one* is given > > explicitely, regardless of type? Or maybe print a warning in this > > case.
> > No, because who knows how it's being specified?
If you get a single file, it's possible that someone said something like ack pattern * and this matches a single file, but that's a fairly rare case. Actually, even in this case, I wouldn't mind if ack searched the file regardless of its type.
Subject: Re: [rt.cpan.org #28593] Shouldn't 'text' files be searched by default?
Date: Tue, 31 Jul 2007 15:41:52 -0500
To: bug-ack [...] rt.cpan.org
From: Andy Lester <andy [...] petdance.com>
Show quoted text
> > Not really, since you can still override it. I'm just arguing about > the > default option. I'd argue that most people will find small text files > interesting. I realize I can set this in my ACK_OPTIONS, but I think > it's confusing to people who use ack for the first time. >
>>> b) Shouldn't ack just search the file if only *one* is given >>> explicitely, regardless of type? Or maybe print a warning in this >>> case.
>> >> No, because who knows how it's being specified?
> > If you get a single file, it's possible that someone said something > like > > ack pattern * > > and this matches a single file, but that's a fairly rare case. > Actually, > even in this case, I wouldn't mind if ack searched the file regardless > of its type. >
I've heard both of these, and been around and around on them. I should start an ack fack. xoxo, Andy -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance