You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inside the latest Ack2 repository I search for this:
$ ack "current\ndirectory.*then"
249:Search for PATTERN in each source file in the tree from the current
directory on down. If any files or directories are specified, then
But if I search the same with the context:
$ ack -A2 "current\ndirectory.*then"
$
I don't see anything. This is because the way ack parse files. It does parse the file iterating lines when context is enabled and the whole file else. No exception is handled here. This is a bug.
The text was updated successfully, but these errors were encountered:
This is definitely a bug; both in the inconsistency in operation between two modes that should be consistent, but also in your first example. Ack is line-based (see Can I do multi-line regexes? in the FAQ), but we read the file into a single chunk sometimes for optimization purposes.
Inside the latest Ack2 repository I search for this:
But if I search the same with the context:
I don't see anything. This is because the way ack parse files. It does parse the file iterating lines when context is enabled and the whole file else. No exception is handled here. This is a bug.
The text was updated successfully, but these errors were encountered: