--- ./lib/TWiki/Plugins/NatSkinPlugin/Search.pm.orig 2007-06-02 15:46:44.000000000 -0700 +++ ./lib/TWiki/Plugins/NatSkinPlugin/Search.pm 2007-06-02 17:16:10.000000000 -0700 @@ -118,7 +118,7 @@ $options = $1; } #writeDebug("options=$options"); - my $doIgnoreCase = ($options =~ /u/ || $theIgnoreCase) ? 1 : 0; + my $doIgnoreCase = ($options !~ /u/ && $theIgnoreCase) ? 1 : 0; # construct the list of webs to search in my @webList = ($theWeb); @@ -324,7 +324,7 @@ #writeDebug("theWebList=" . join(" ", @$theWebList)); } - my $cmdTemplate = "/bin/egrep -l$doIgnoreCase %PATTERN|U% %FILES|F%"; + my $cmdTemplate = "/bin/egrep -l" . ($doIgnoreCase ? " -i" : "") . " %PATTERN|U% %FILES|F%"; my $results = {}; my $nrHits = 0; my @searchTerms = _getSearchTerms($theSearchString);