Re: [PATCH Cogito] cg-init breaks if . contains sub-dir
- From
- Jan-Benedict Glaw <jbglaw@lug-owl.de>
- Date
- May 10, 2005, 07:52 UTC
- Message-ID
- <20050510075227.GA8176@lug-owl.de>
- In-Reply-To
- <428043EB.7010004@didntduck.org>
On Tue, 2005-05-10 01:17:31 -0400, Brian Gerst <bgerst@didntduck.org> 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 | ...
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));