Alternate glob matcher for .bzrignore

John Arbash Meinel john at arbash-meinel.com
Sun Jan 8 23:37:30 GMT 2006


Martin Pool wrote:
> On Mon, 2006-01-09 at 10:21 +1100, Robert Collins wrote:
> 
> 
>>Do we really want to handle directories differently? Last time that came
>>up I recall a solid trouncing in my direction for using '/' like that -
>>like rsync does.
> 
> 
> Good question.
> 
> I think the objections before were not so much that they handled
> directories differently, but rather than using '/' to indicate
> 'everything within' both quite subtle, and has few or no precedents in
> unix *and* is different to the one tool, rsync, that does use it.
> 
> The fact that * matches only single directory components is pretty well
> established in Unix, and having ** match any number of whole directory
> components is moderately well established.  
> 
> It may be a bit surprising that '**.tmp' doesn't match .tmp within
> directories, and you need '**/*.tmp'.  
> 

Is that how zsh does it? That wasn't how I implemented it.
**.tmp matches .tmp in the directory. (It translates to regex .*)

John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060108/9067c9b3/attachment.pgp 


More information about the bazaar mailing list