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.

MongoDB Logo MongoDB