Closed jalanb closed 7 years ago
I'm guessing that the RHS of the |
is matching the empty string, so the matching engine doesn't advance. This looks to be happening with .?
as well.
This appears to have been fixed in 80402b4cca94834795210fc6e25261f2d57eb049
This went out in 2.16.
Works for me at verson 2.16, thanks
Context: searching python code for
.split('|')
, so I used ack likeThis resulted in ack showing me the name of the first matching file and then hanging. Quickly realised the silly mistake and retried with the
|
escapedwhich worked fine. So not really an issue for me, just thought you'd like to know.
For completeness, I tried the following, which found nothing (because I don't have any perl files in that dir), and came back without hanging.
Adding a single
.pl
file, even an empty one, will then cause that command to hang