-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add -n/--line-number #142
Comments
This will require changing |
Re: PR #351 @n1vux wrote:
I'm pretty sure it's what the OP of that issue was getting at... The biggest difference, of course, being that this includes an (admittedly simple) PR, versus a feature request. «grin» @petdance wrote:
I don't disagree, but I'm a big believer in: "Just 'cuz you can't do everything doesn't mean you can't do anything." And this seemed like the simplest thing that could possibly work. «shrug» FWIW, my specific use case / impetus was that I was looking for a way to fall back to matching a
Cheers! :-D |
I'm going to start a new issue that addresses all this. We need to document the existing behavior, and figure out exactly what new behavior we will have. I'm afraid that just adding a new option is going to have consequences we won't have thought of. For this problem, code is the least of my concerns right now. |
ack doesn't have a
-n
/--line-number
like grep does. It needs one. Consider backporting it to ack2.Also figure out what it will be called because
-n
is already in use for--no-recurse
. Or maybe that's a breakage we have in ack 3, and drop-n
for--no-recurse
, and make-N
be--no-recurse
.This needs to get done before ack 3.000.
The text was updated successfully, but these errors were encountered: