Joey Hess writes ("Re: Bug#350570: dh_install -X behaviour is strange and 
ill-documented"):
> >        Exclude files that contain "item" anywhere in their filename from
> >        being installed.
> 
> "contains" vs "matches" or "expands to" indicates a substring match, not
> a regexp or glob. Pierre Habouzit suggested in #349070 that it use
> -wholename \*item\* after escaping glob characters in the item, and I
> suppose I can do that.

Right.

I don't have a particular opinion about this, but since at the moment
anything containing regexp metacharacters except `.' (which includes
all strings that have a different meaning as globs than as literal
strings) is mishandled, you certainly have the option of changing the
documentation now to specify a more sophisticated kind of matching,
and then to implement that.  I mean that doing so shouldn't be a
compatibility problem.

Given that choice, it seems to me that a glob match (allowing \\ for
escaping glob metacharacters) is the right point in the tradeoff
between power and simplicity/complexity.

(I can't seem to find -wholename in the info docs for find on this
more-or-less-sarge system.  Is this a new name for -path ?)

Ian.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to