On Thu, 2005-07-07 at 11:25 -0500, Brian Downing wrote:
> On Thu, Jul 07, 2005 at 10:17:58AM -0500, Timothy Brownawell wrote:
> > > With (Boost's) regular expressions, I could say
> > > 
> > >   foo\.(?!bar)\.*
> > > 
> > > to match, say "foo.abc", but not "foo.bar". How do I do this
> > > with shell patterns now?
> > 
> > I don't think you can. There seems to be some code for specifying
> > excluded patterns, but it's not complete.
> 
> Any reason not to have a --regex option?  Especially since the code is
> already in Boost?
> 
> (I can see the attraction of globs, as they are a lot easier for most
> people to understand, but regular expressions are attractive too...)

The globs are sent over the network, rather than being converted to
regexes first. IIRC there were security concerns about clients giving
nasty regexes that could use rediculous amounts of time/memory to check.

Tim




_______________________________________________
Monotone-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/monotone-devel

Reply via email to