From owner-freebsd-hackers Sat Apr 29 19:46:42 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 547BC37BA52; Sat, 29 Apr 2000 19:46:38 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.12 #1) id 12lixo-0008fX-00; Sun, 30 Apr 2000 02:56:04 +0100 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.12 #7) id 12lixo-0004Pl-00; Sun, 30 Apr 2000 02:56:04 +0100 Date: Sun, 30 Apr 2000 02:56:04 +0100 From: Ben Smithurst To: Kris Kennaway Cc: FreeBSD-hackers@FreeBSD.org Subject: Re: Adding -maxdepth and -mindepth options to find(1) Message-ID: <20000430025604.B22035@strontium.scientia.demon.co.uk> References: <20000429001436.F17098@strontium.scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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