Closed hoelzro closed 5 years ago
Perhaps I'm missing something, but the assumption that $_
means "the whole line" doesn't seem to be explained in the docs. Given that output has access to all variables in scope at that point in ack, it would be good to enumerate the variables for which users can expect ack to return a consistent value ($_[1] seems to return the filename, for instance; $.
also works). The main regexp variables are documented, which is good, and presumably the more exotic ones are too, but support or otherwise of anything else is a design/maintainance decision.
I mentioned this in #531.
There will be no more releases of ack 2.
Example:
This is probably broken due to my optimization.