[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-stow] [Patch] Option to exclude files for stow/unstow.
From: |
Gaël Roualland |
Subject: |
Re: [Bug-stow] [Patch] Option to exclude files for stow/unstow. |
Date: |
Wed, 12 Jun 2002 21:28:55 +0200 |
Cedric Ware a écrit :
> > > - the regexps are forced to "^$", as I wouldn't necessarily expect
> > > "-e 00README" to exclude a "_00README.first" file; I don't know
> > > whether it is a good or a bad thing;
> >
> > I don't really know.. since it is easy to add ^$ to the supplied regexp
> > by hand, it would probably be more general to not add it by default.
>
> I thought of the kind of user who wouldn't know what a regexp is and
> might be surprised. But the more I look at it the less I like it...
> A good compromise would have been shell-like file-globbing (like "0*z"
> instead of "^0.*z$") but I don't know how to do it.
I think too that using a shell pattern might be easier. Guillaume, what
do you think ?
By the way do we have access to fnmatch from perl ? If not, we'll have
to emulate it with regexps.
> > Looks nice to me. Maybe building a single regexp by or'ing the various
> > excludes would be faster ?
>
> Why, silly me, of course! Do you want a revised patch or will you
> integrate it directly?
Let's see what kind of matching we use first :)
Gaël.
--
Gaël Roualland -+- address@hidden