On Fri, Mar 10, 2006 at 12:22:21PM -0800, Rob Hudson wrote:
> If I run this:
> 
> # for i in ~/.maildir/cur/* ; do echo $i ; done
> ~/.maildir/cur/1142021402.V810I1560adeM187221:2,S
> 
> I get a list of the files in that directory.
> 
> If there are no files in the directory, I get my glob back...
> 
> # for i in ~/.maildir/new/* ; do echo $i ; done
> ~/timesheet/.maildir/new/*
> 
> Is there a way to *not* get this glob back?  If the dir is empty, the 
> command I have is getting this glob and is throwing an error.

find ~/.maildir/new -type f -print

-- 
"We are what we repeatedly do.  Excellence, therefore, is not an act,
but a habit."
        -- Aristotle

_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to