bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bugfix: Failure of -execdir to process arguments at depth 0


From: Dmitry V. Levin
Subject: Re: Bugfix: Failure of -execdir to process arguments at depth 0
Date: Sun, 6 Feb 2005 05:16:20 +0300

On Sun, Feb 06, 2005 at 01:01:16AM +0100, Bas van Gompel wrote:
> Op Sat, 5 Feb 2005 12:19:55 +0000 schreef James Youngman
> in <address@hidden>:
> :  On Thu, Feb 03, 2005 at 11:23:26PM +0000, James Youngman wrote:
> :
> : > I have put in place (in CVS) a quick fix for the problem.  It makes
> : > -execdir work the same as -exec when (state.curdepth==0).  The problem
> : > is that the working directory at that point will still be the same as
> : > it was when we started, as we have not recursed into any directories
> : > yet.
> : >
> : > If you have a good suggestion as to how this should be better solved,
> : > please let me know.
> :
> :  I have now checked into CVS a change which properly resolves the
> :  problem, much as described below.
> 
> This appears to work well. However when the rootdir is passed,
> something looks fishy:
> 
> find / -mindepth 0 -maxdepth 0 -execdir echo {} \;
> .//
> 
> I also spotted, when `+' is used:
> 
> find / -mindepth 0 -maxdepth 0 -execdir echo == {} +
> ==
> == .//
> 
> (Notice the first line of output, which should not be there.)

Recent version of the patch at
https://savannah.gnu.org/patch/?func=detailitem&item_id=3701
plus patch at https://savannah.gnu.org/patch/?func=detailitem&item_id=3723
apparently fix both issues.


-- 
ldv

Attachment: pgpXIRqOo8eg3.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]