From owner-cvs-all Tue Jan 23 3:17:20 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6B35B37B69E; Tue, 23 Jan 2001 03:16:53 -0800 (PST) Received: (from peter@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0NBGrk15268; Tue, 23 Jan 2001 03:16:53 -0800 (PST) (envelope-from peter) Message-Id: <200101231116.f0NBGrk15268@freefall.freebsd.org> From: Peter Wemm Date: Tue, 23 Jan 2001 03:16:53 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/find extern.h find.1 find.h function.c option.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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