From: Petr Baudis Date: Thu, 12 May 2005 18:53:58 GMT Subject: Re: [PATCH Cogito] cg-init breaks if . contains sub-dir Message-ID: <20050512185358.GB324@pasky.ji.cz> In-Reply-To: <20050510075227.GA8176@lug-owl.de> Dear diary, on Tue, May 10, 2005 at 09:52:27AM CEST, I got a letter where Jan-Benedict Glaw told me that... > On Tue, 2005-05-10 01:17:31 -0400, Brian Gerst wrote: > > But it can handle symlinks: > > > > find * -type f -o -type l -print0 | xargs -0r cg-add > > This won't work because the explicit OR (-o) lower precedence compared > to the implicit AND between "-type l" and "-print0", thus this find > command will do print0 IFF the matched entry is a symlink. Use something > like this instead: > > find * \( -type f -o tyle l \) -print0 | ... Thanks to all the four co-authors, applied. -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor