I often use grep -r --include. But it has a really annoying problem - the 
comparison of the filename is case-sensitive. The -i option seems to apply only 
to the regex not the filename matching.

For example, I have many files named virtualenvironment.ini. But unfortunately, 
sometimes it is virtualEnvironment.ini, VirtualEnvironment.ini, etc.

Grep -r --include=virtualenvironment.ini skips the latter files. As a 
work-around, I use --include="[Vv]irtual[Ee]nvironment.ini" but this is 
cumbersome and not a complete solution.

Because Windows is case-insensitive/case-preserving, I think the Cygwin 
filename matching should also be case-insensitive. Am I missing something here?

Thanks,
Rich

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to