beyondgrep / ack2

**ack 2 is no longer being maintained. ack 3 is the latest version.**
https://github.com/beyondgrep/ack3/
Other
1.48k stars 138 forks source link

Odd bug -w with numbers and alternation #443

Closed epa closed 10 years ago

epa commented 10 years ago

What's going on here?

% mkdir n; cd n
% echo 86700 >foo
% ack -w 670
% ack -w '650|670'
% ack -w '650|660|670'
% ack -w '650|660|670|680'
foo
1:86700
% ack --version
ack 2.12
Running under Perl 5.18.2 at /usr/bin/perl
hoelzro commented 10 years ago

@epa Thanks for pointing this out; I've just fixed the bug.

epa commented 10 years ago

Thanks, do you know when a fixed ack will be released?

hoelzro commented 10 years ago

@epa That's largely up to @petdance.

epa commented 9 years ago

This is fixed in ack 2.14.