-
-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify nocase documentation (specifically when setting it to not match OS behavior) #569
Comments
Good point, doc patch welcome or I'll get to it eventually. Brain dumping the answer here, unpolished. You can do a case insensitive match on a case sensitive file system, though it's a bit less efficient, because it requires regexp comparisons in all path portions, instead of just those containing magic. However, the reverse is not true; you cannot correctly do a case sensitive match on a case insensitive file system, because As to "more or less results than expected": if the case sensitivity setting doesn't match the system (and the heuristic mentioned in the PR isn't triggered; for example, a case sensitive macOS fs), then if there's a file at
which, all together, is a confusing In the other direction, where the fs is case insensitive, but we THINK it's case sensitive,
In other words:
|
@isaacs thank you for the quick and detailed response! May I suggest breaking down the
|
The docs state:
may return more or less results than expected
- perhaps some example could be provided?nocase
as to not match the OS behavior, even when it is known that the filesystem's case sensitivity differs from the platform default, is a legitimate scenario. If that is indeed the case, the wording above would ideally reflect that (as I read it, it currently suggests the opposite).The text was updated successfully, but these errors were encountered: