Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: ignore globbing patterns are not anchored

fsvs
Discussion topic

Back to topic list

Re: ignore globbing patterns are not anchored

Author pmarek
Full name P.Marek
Date 2006-10-27 05:13:19 PDT
Message Sorry, I forgot ...

> PS: The one major headache still left in regard of globbing patterns is
> that it's still not possible write a single pattern which matches the
> file "tmp" in the top-level directory and any subdirectory...
> './**/tmp' won't match './tmp' while './**tmp' will match much more...
> (Any file ending with "tmp".) However, as fsvs relies on "./" as the
> start of a pattern, I had no good idea of how to fix it...

I believe that's something that has to be changed, too ...
Currently we substitute "**" to ".*".
If we checked for "/**/" and replaced that with ".*" it wouldn't work ...
"a/**/b" would match "ab" too.

So we'd have to special-case "**/" to ".*"? Hmmm, doesn't work, too
"a/**/b" would match "a/XXXb" too.
So we'd need "/**/" => "/(.*/)?" ...
That's a special-case -- because /**/ is a special case of possibly
(near-) 0-byte length ...
Is that correct?


Regards,

Phil

« Previous message in topic | 8 of 11 | Next message in topic »

Messages

Show all messages in topic

ignore globbing patterns are not anchored Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> 2006-10-10 14:48:18 PDT
     Re: ignore globbing patterns are not anchored pmarek P.Marek 2006-10-11 08:19:37 PDT
         Re: ignore globbing patterns are not anchored Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> 2006-10-13 12:15:41 PDT
             Re: ignore globbing patterns are not anchored pmarek P.Marek 2006-10-14 23:24:03 PDT
                 Re: ignore globbing patterns are not anchored Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> 2006-10-15 08:03:09 PDT
                 Re: ignore globbing patterns are not anchored Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> 2006-10-26 09:56:29 PDT
                     Re: ignore globbing patterns are not anchored pmarek P.Marek 2006-10-27 04:46:45 PDT
                         Re: ignore globbing patterns are not anchored pmarek P.Marek 2006-10-27 05:13:19 PDT
                         Re: ignore globbing patterns are not anchored Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> 2006-10-27 12:38:18 PDT
                     Re: ignore globbing patterns are not anchored pmarek P.Marek 2006-10-27 05:13:19 PDT
                         Re: ignore globbing patterns are not anchored Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de> 2006-10-27 12:41:41 PDT
Messages per page: