2

I have a file that causes Ack 2.0 to report a "Permission denied" error, so I've been trying to get it to ignore the file.

I have tried the following in my ackrc

--type-set=lockfile:match:/NameOfLockfile/
--type=nolockfile

But it still reports the error "Permission denied". Using the same syntax I have confirmed that I can get it to not search in the given file (yet it must still try to access it since it gets permission denied error)

1 Answer 1

5

Just do --ignore-file=match:/NameOfLockFile/ or --ignore-file=is:NameOfLockFile. You don't need to set a filetype for it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.