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

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

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 1.25_02



Subject: --nogroup fails to work if the only match is in the current directory
If the only match is in the current directory, --nogroup will fail to prepend the file name to the match. For example, try finding a match in a Changes file: ack -a --nogroup Stosberg Changes Mark
Subject: --nogroup fails ... and tip for vim integration
From: MARKSTOS [...] cpan.org
On Fri Aug 18 12:52:35 2006, MARKSTOS wrote: Show quoted text
> If the only match is in the current directory, --nogroup will fail to > prepend the file name to the match. For example, try finding a match in > a Changes file: > > ack -a --nogroup Stosberg Changes
This could have been confusing about when "show_filename" is turned on. Adding "-H" also solves this for me. You can close this bug. It may be helpful to document that this is what to put in a .vimrc file to use ack instead of grep for searching there: set grepprg=ack\ --nogroup\ -H That was the context I was using it when I got the surprising result. ( Vim always expects the file name to prepended but ack apparently tries to be "smart" about this, and prepends by default sometimes and not others... ) Mark
Subject: Re: [rt.cpan.org #21066] --nogroup fails ... and tip for vim integration
Date: Tue, 5 Dec 2006 16:59:39 -0600
To: bug-ack [...] rt.cpan.org
From: Andy Lester <andy [...] petdance.com>
On Dec 5, 2006, at 10:46 AM, via RT wrote: Show quoted text
> ( Vim always expects the file name to prepended but ack apparently > tries > to be "smart" about this, and prepends by default sometimes and not > others... )
This parallels what GNU grep does, too. That's where I was looking for the compatability. -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance