bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: no test(1) for empty directories


From: Paul Jarc
Subject: Re: no test(1) for empty directories
Date: Tue, 07 May 2002 10:36:55 -0400
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i686-pc-linux-gnu)

address@hidden (Aharon Robbins) wrote:
> In article <address@hidden>,
> Dan Jacobson <address@hidden> wrote:
>> No neat and clean way to use test(1) to find empty directories.  Sure,
>> got -d and -s, but no special -s especially made for directories.
>
> You don't need it. Check for directory and link count of 2.

That tells you whether there are subdirectories, not whether there are
any files at all.


paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]