X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=TILxQMEAcxn63+jd
	5RnZKb5sq/luZTRviLj0WSvQG8LT1w1UEzI4DnM6s4vfvZ8mQT+VLLDxah0XjS6k
	tPoSX9PiQnvkypu16L9drdVCgFdn+6qoeMPXexvSvFDjiEx582ILIMmZ0fvrBipE
	vUOldzUQ7CBo9DgY4tRJqYnmxyA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=bN7ynwPAXL77cSQXX76EN6
	pvB8Y=; b=Cku179P1ojYnXloivtWt23Uw3uFV2M5D0MSyzyNssl3NCWI4MdEPvt
	FnZzHPe24x6T3+6wKHB6AmwjC+NNlfEH+gxsOF8GOIOfEiElZxlq/tJm3pOwjS7l
	JZK/qL+5LLaytR8JVfyuh3nMIzAxpBRnMSENFcwbMCUUhs7RJmT2M=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,KAM_LAZY_DOMAIN_SECURITY autolearn=ham version=3.3.2 spammy=explains, H*UA:6.1, H*u:6.1
X-HELO: m0.truegem.net
Subject: Re: (SOLVED) RFE: find <path> -d -size 0 => doesn't find empty directories
To: cygwin@cygwin.com
References: <5BDA347D.8070909@tlinx.org> <a0f243ea-c208-1ad2-84c2-3f2d1815cc99@maxrnd.com> <9c0c7f6c-f400-59f2-1002-c81aeffba96f@maxrnd.com> <5BDB297B.4050401@tlinx.org>
From: Mark Geisert <mark@maxrnd.com>
Message-ID: <77532797-caed-785e-c774-b415ec72a4f0@maxrnd.com>
Date: Thu, 1 Nov 2018 22:33:45 -0700
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46
MIME-Version: 1.0
In-Reply-To: <5BDB297B.4050401@tlinx.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

L A Walsh wrote:
> On 10/31/2018 9:39 PM, Mark Geisert wrote:
>
>>
>> I shouldn't have blindly trusted the Subject:.
> ---
>     You did and gave the right answer.  I had forgotten about
> empty -- though not sure why.  I guess I usually only use it for file
> normally. For empty directories under /tmp, I usually use 'rmdir *'.

What I meant was, I blindly trusted "-d" to select directories.  It doesn't. 
One has to explicitly say '-type d' to do that.  'man find' explains.
Cheers,

..mark


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

