Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Apr 2000 02:56:04 +0100
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        Kris Kennaway <kris@FreeBSD.org>
Cc:        FreeBSD-hackers@FreeBSD.org
Subject:   Re: Adding -maxdepth and -mindepth options to find(1)
Message-ID:  <20000430025604.B22035@strontium.scientia.demon.co.uk>
In-Reply-To: <Pine.BSF.4.21.0004291304200.16747-100000@freefall.freebsd.org>
References:  <20000429001436.F17098@strontium.scientia.demon.co.uk> <Pine.BSF.4.21.0004291304200.16747-100000@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Kris Kennaway wrote:

> On Sat, 29 Apr 2000, Ben Smithurst wrote:
> 
>> any other people who might want it?  I've attached a patch to implement
>> this, if I don't get any feedback I'll send-pr it instead, I thought I
>> might get a few opinions here first.
> 
> Good idea - haven't reviewed the patch, though.

Turns out the patch doesn't quite work as it stands...  Something like
'find . -name foo -maxdepth 1' won't work because the maxdepth code
will only be executed if the previous conditions match.  (So 'find .
-maxdepth 1 -name foo' works fine.) I guess I'll have to find a way
around that which isn't too ugly.

-- 
Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000430025604.B22035>