On Mon, Mar 23, 2009 at 10:07:17PM +0100, Uwe Kleine-König wrote:
> Does it help you to used -exec instead of -execdir?

It works as such, but it does not have the desired effect, I'm afraid:

$ mkdir -p debian/patches/{foo,bar}
$ find debian/patches -depth -type d -empty -exec rmdir {} +
$ find debian/
debian/
debian/patches
$ 

I'm assuming you'd expect it to delete "patches" too in this case? At
least that's what happens with -execdir on both lenny and sid.

-- 
Marcin Owsiany <[email protected]>             http://marcin.owsiany.pl/
GnuPG: 1024D/60F41216  FE67 DA2D 0ACA FC5E 3F75  D6F6 3A0D 8AA0 60F4 1216



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to