bug-stow
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-stow] [Patch] Option to exclude files for stow/unstow.


From: Cedric Ware
Subject: Re: [Bug-stow] [Patch] Option to exclude files for stow/unstow.
Date: Mon, 10 Jun 2002 13:48:26 +0200
User-agent: Mutt/1.4i

> > Here is a patch to Stow 1.3.3 which implements a "-e"/"--exclude"
> > option to ignore files matching given regular expressions. 
> 
> Thanks!

Since I still view myself as the primary "customer" of this feature,
I guess you're welcome... <g>

> > - files under directly symlinked subdirectories are not affected
[8<]
> This seems to be an acceptable tradeoff. I don't really see any nice way
> of fixing that,

Neither do I.

> > - 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.

> 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?

                                                Thank you,
                                                Cedric Ware.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]