[Lxr-dev] [ lxr-Bugs-3517685 ] Glipse search denied in some Linux distributions
Brought to you by:
ajlittoz
From: SourceForge.net <no...@so...> - 2012-04-14 08:03:50
|
Bugs item #3517685, was opened at 2012-04-14 00:50 Message generated for change (Comment added) made by ajlittoz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=3517685&group_id=27350 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Database interface Group: current cvs >Status: Closed >Resolution: Fixed Priority: 6 Private: No Submitted By: Andre-Littoz (ajlittoz) Assigned to: Andre-Littoz (ajlittoz) Summary: Glipse search denied in some Linux distributions Initial Comment: Depending on the Linux distribution, glimpse invocation (in 0.11 and beta 0.12) may fail with error message: /usr/bin/glimpse: unmatched '[', ']' (use \[, \] to search for [, ]) This is known to happen under Gentoo (reported by conquistdor in the Help forum), but not under Fedora. The cause is in the file filter that exclude file whose name end in ,v (CVS database) and ~ (editor backup). The filter is coded as a complex "positive" pattern defining all accepted filenames (that's the logical negation of the exclusion). The filter is passed to glimpse with -F option. Glimpse seems to have trouble to process the union of two negations followed by the "end of string" anchor $ under some distributions. -F may be used to pass more directives than just a pattern to agrep: the -F argument may contain a full set of agrep options and arguments. Since agrep has an "exclude" option, the complex negated pattern may be replaced by a much simpler exclusion pattern preceded by the -v agrep option. ---------------------------------------------------------------------- >Comment By: Andre-Littoz (ajlittoz) Date: 2012-04-14 01:03 Message: In sub glimpsesearch, the following option to glimpse -F (\\,[^v\\~]|[^\\,][^\\~])\$ is changed to -F '-v (\\,v\|\\~)\$' This simpler pattern seems better accepted across distributions. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=3517685&group_id=27350 |