-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Labels
Description
ack | wc -l
is giving me 110 lines, but ack -c
is counting 0.
I don't think this is Issue #563, cos that's specific to overcounting matches, which clearly doesn't apply here.
$ ack '^(?=.*(\w)(?!\1)(\w)\2\1)(?!.*\[[^]]*(\w)(?!\3)(\w)\4\3)' ack_zero_count_input.txt | wc -l
110
$ ack -c '^(?=.*(\w)(?!\1)(\w)\2\1)(?!.*\[[^]]*(\w)(?!\3)(\w)\4\3)' ack_zero_count_input.txt
0
Here's the input file:
ack_zero_count_input.txt
I haven't yet tried to minimize this, to narrow down what about that pattern or input is causing this. -c
is still working fine for me in other situations. This is ack 2.14.