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)

Steve Vermeulen
  • 1,406
  • 1
  • 19
  • 25

1 Answers1

5

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

Andy Lester
  • 91,102
  • 13
  • 100
  • 152