Index: TWiki.cfg =================================================================== --- TWiki.cfg (revision 1735) +++ TWiki.cfg (working copy) @@ -205,14 +205,28 @@ $storeTopicImpl = "RcsWrap"; #$storeTopicImpl = "RcsLite"; +sub findProgramUsingSearchPath +{ + my ($prog,$paths) = @_; + + foreach my $path ( @{$paths} ) + { + my $fullPath = "$path/$prog"; + return $fullPath if -X $fullPath; + } + + return ""; +} +my $programSearchPath = [ qw( /bin /usr/bin /usr/local/bin ) ]; + # NOTE: You might want to avoid c: at start of cygwin unix command for # Windows, seems to cause a problem with pipe used in search # Unix ls command : (deprecated since 01 Nov 2003) $lsCmd = "/bin/ls"; # Unix egrep command : -$egrepCmd = "/bin/egrep"; +$egrepCmd = findProgramUsingSearchPath( egrep => $programSearchPath ); # Unix fgrep command : -$fgrepCmd = "/bin/fgrep"; +$fgrepCmd = findProgramUsingSearchPath( fgrep => $programSearchPath ); #display Time in the following timezones (this only effects the display of times, all internal storage is still in GMT) # gmtime / servertime