Menu

#10 Bad regular expression in exclusion

open
nobody
None
5
2005-04-14
2005-04-14
No

When excluding cache, the regex is '.*/[Cc]ache/.*'

The / has special meaning in regexes and the expression
causes find to crash with segv on some systems.

I think the correct expression would be '.*\/[Cc]ache\/.*'

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.