# Fix: Inconsistent Case-Sensitivity in GrepTool (#26235)

Co-authored-by: gemini-cli[bot] <gemini-cli[bot]@users.noreply.github.com>
This commit is contained in:
gemini-cli[bot]
2026-04-29 22:59:58 +00:00
committed by GitHub
parent 49988fc05c
commit fa1a7c10bd
2 changed files with 29 additions and 1 deletions
+1 -1
View File
@@ -465,7 +465,7 @@ class GrepToolInvocation extends BaseToolInvocation<
const grepAvailable = await this.isCommandAvailable('grep');
if (grepAvailable) {
strategyUsed = 'system grep';
const grepArgs = ['-r', '-n', '-H', '-E', '-I'];
const grepArgs = ['-r', '-n', '-H', '-E', '-I', '-i'];
// Extract directory names from exclusion patterns for grep --exclude-dir
const globExcludes = this.fileExclusions.getGlobExcludes();
const commonExcludes = globExcludes