From owner-cvs-all Tue Jan 23 9:27:39 2001 Delivered-To: cvs-all@freebsd.org Received: from winston.osd.bsdi.com (winston.osd.bsdi.com [204.216.27.229]) by hub.freebsd.org (Postfix) with ESMTP id 5986337B402; Tue, 23 Jan 2001 09:27:16 -0800 (PST) Received: from winston.osd.bsdi.com (jkh@localhost [127.0.0.1]) by winston.osd.bsdi.com (8.11.1/8.11.1) with ESMTP id f0NHRAt24144; Tue, 23 Jan 2001 09:27:11 -0800 (PST) (envelope-from jkh@winston.osd.bsdi.com) To: Peter Wemm Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/find extern.h find.1 find.h function.c option.c In-Reply-To: Message from Peter Wemm of "Tue, 23 Jan 2001 03:16:53 PST." <200101231116.f0NBGrk15268@freefall.freebsd.org> Date: Tue, 23 Jan 2001 09:27:10 -0800 Message-ID: <24140.980270830@winston.osd.bsdi.com> From: Jordan Hubbard Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Cool - I've always wanted something like that. > peter 2001/01/23 03:16:53 PST > > Modified files: > usr.bin/find extern.h find.1 find.h function.c > option.c > Log: > Add the -empty flag, from OpenBSD. It returns true if the directory > is empty. There doesn't appear to be another easy way to do this. > > mobile# mkdir foo > mobile# mkdir foo/bar > mobile# mkdir bar > mobile# find . -empty > ./foo/bar > ./bar > > Revision Changes Path > 1.11 +2 -1 src/usr.bin/find/extern.h > 1.30 +3 -1 src/usr.bin/find/find.1 > 1.9 +3 -3 src/usr.bin/find/find.h > 1.28 +44 -1 src/usr.bin/find/function.c > 1.11 +2 -1 src/usr.bin/find/option.c > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message