What we did at UBZ

Michael Ellerman michael at ellerman.id.au
Fri Nov 18 06:04:23 GMT 2005


On Fri, 18 Nov 2005 16:36, Matthew Hannigan wrote:
> On Fri, Nov 18, 2005 at 03:40:26PM +1100, Michael Ellerman wrote:
> > I realise we've decided that .bzr should become _,+=HERE_BE_DRAGONS=+,_,
> > but I thought I'd just mention another reason why I like . files.
> >
> > They're not matched by * in my shell.
> >
> > Which means:
> >
> > # grep -R "foo" *
> >
> > does what you want. ie. it doesn't grep your revision history.
>
> Yeah, agreed, that is one reason to choose hidden files.
>
> Matching non _ is moderately easy in the standard shell:
>
> 	du  -sh [^_]*
> 	ls -d [^_]*
> 	grep -R foo [^_]*

Call me a fruit but I don't call that easy. :D It's not easy to type and it's 
requires a pretty solid understanding of the shell. I've been using *nix for 
a few years now and I don't often go around using character classes in 
command lines.

If we end up with _bzr we could implement a "bzr grep" which skips .bzr, a few 
other tools do this, but it's a bit ugly and many people will never find it.

cheers

-- 
Michael Ellerman
IBM OzLabs

email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051118/5c3177e1/attachment.pgp 


More information about the bazaar mailing list