Re: [PATCH] cg-init should only process files
- From
- Morten Welinder <mwelinder@gmail.com>
- Date
- May 12, 2005, 16:37 UTC
- Message-ID
- <118833cc050512093750db7d55@mail.gmail.com>
- In-Reply-To
- <E1DWG9b-0001VV-V0@ash.dgreaves.com>
> - find * | xargs cg-add > + find * -type f | xargs cg-add
I think we went through that a day or two ago: Problems:
1. You forgot symlinks. 2. It does not work if nothing matches "*". (Nor does the original.) 3. Either it should not match dotfiles in subdirectories, or else it should match them in the top directory too. 4. With needs some -print0 and "--" protection.
Morten