phiresky / ripgrep-all

rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc.
Other
7.98k stars 172 forks source link

Is it safe to interrupt a started search? #227

Closed xfilesee34 closed 4 months ago

xfilesee34 commented 4 months ago

Is there a possibility that ripgrep-all corrupts any file it is searching? Is it safe to use ctrl + c to interrupt search?

lafrenierejm commented 4 months ago

No, ripgrep-all shouldn't be able to corrupt any files it searches. It does not modify any of the files it is searching. Simply reading a file should not be capable of corrupting it unless you are dealing with failing hardware or a buggy filesystem.

phiresky commented 4 months ago

yes, it's safe