Re: find acting weird

2010-05-26 Thread Юрий Пухальский
2010/5/26 Dmitry V. Levin : > Hi, > > On Wed, May 26, 2010 at 01:42:53PM +0400, Юрий Пухальский wrote: >> >> I'm trying to remove the directories with find -exec and i've >> encountered that for some reason the behaviour is strange. I've tested >> with 4.1.20, 4.2.27 and 4.4.2. >> I'm doing the fol

Re: find acting weird

2010-05-26 Thread Eric Blake
On 05/26/2010 09:53 AM, Юрий Пухальский wrote: > So goes the standard. It's not clear (for me) what means "all entries > in a directory". In this case it depends on whether we consider it > before or after -exec. > >> >> You will not get the error if you tell find to do a depth-first search: >> >>

Re: find acting weird

2010-05-26 Thread Юрий Пухальский
2010/5/26 Eric Blake : > On 05/26/2010 03:42 AM, Юрий Пухальский wrote: >> Good day! >> >> I'm trying to remove the directories with find -exec and i've >> encountered that for some reason the behaviour is strange. I've tested >> with 4.1.20, 4.2.27 and 4.4.2. >> I'm doing the following: >> >> devf

Re: find acting weird

2010-05-26 Thread Dmitry V. Levin
Hi, On Wed, May 26, 2010 at 01:42:53PM +0400, Юрий Пухальский wrote: > > I'm trying to remove the directories with find -exec and i've > encountered that for some reason the behaviour is strange. I've tested > with 4.1.20, 4.2.27 and 4.4.2. > I'm doing the following: > > devfe:~>mkdir -p findtes

Re: find acting weird

2010-05-26 Thread Eric Blake
On 05/26/2010 03:42 AM, Юрий Пухальский wrote: > Good day! > > I'm trying to remove the directories with find -exec and i've > encountered that for some reason the behaviour is strange. I've tested > with 4.1.20, 4.2.27 and 4.4.2. > I'm doing the following: > > devfe:~>mkdir -p findtest/a/b > dev

find acting weird

2010-05-26 Thread Юрий Пухальский
Good day! I'm trying to remove the directories with find -exec and i've encountered that for some reason the behaviour is strange. I've tested with 4.1.20, 4.2.27 and 4.4.2. I'm doing the following: devfe:~>mkdir -p findtest/a/b devfe:~>cd findtest/ devfe:~/findtest>find . -name a -exec rm -rf {}