From: Jan-Benedict Glaw Date: Tue, 10 May 2005 08:04:45 GMT Subject: Re: [PATCH Cogito] cg-init breaks if . contains sub-dir Message-ID: <20050510080445.GB8176@lug-owl.de> In-Reply-To: <20050510075227.GA8176@lug-owl.de> On Tue, 2005-05-10 09:52:27 +0200, Jan-Benedict Glaw wrote: > 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 | ... Btw, this won't find dot files, so using "." as the path list (instead of "*") might be wise... MfG, JBG -- Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _ "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));