Am Mittwoch, 11. Oktober 2006 17:19 schrieb Philipp Marek: > > As the manual does not mention this at all and there is no privision > > to achor a globbing paattern explicitely, I think this is a bug. > I know that this makes sense in a way - but using a pattern > like "./directory/" ignores currently everything below this directory, > which makes sense, too.
> How about a flag or allowing $ at the end? Allowing a "$" at the end of the pattern would be ok, but not intuitive - usually globbing patterns in UNIX do not know about a "$" but are anchored automatically. A flag in contrast would be fine, and/or unanchored behaviour if the strings ends with a "/" - that'd be also fine in my eyes, as it would not unexectedly match substrings in filenames and still allow easily ignoring whole subtrees in a natural way. There's also still the possibility to write "./dir/**" although that looks awkward and isn't intuitive, either. I think I'd opt for anchoring iif the last character is no slash. Excluding directories but not their contents doesn't make sense anyway. And if one really wants to mach a substring of a filename, one can write "./**/*bla*" or stuff like this. If more complex paatterns are desirec, PCREs are the way to go, anyway, but globbing patterns are more common and easier readable for the day-to-day filename matching tasks, IMHO. However, independant of the solution which will be implemented it's neccessary to be able to anchor the patterns (if that won't become the default behaviour) and to extend the IGNORING document with a sentence or two explaining the choosen behaviour. :-) Greetings, Gunter -- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ "There must be a hundred silver dollars in here," moaned Boggis, waving a purse. "I mean, that's not my league. That's not my class. I can't handle that sort of money. You've got to be in the Guild of Lawyers or something to steal that much." -- (Terry Pratchett, Wyrd Sisters) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + PGP-verschlüsselte Mails bevorzugt! + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
pgpTjTDSl2Bi1.pgp
Description: PGP signature
