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.
$ for i in $( ls ~/.maildir/cur ) ; do echo $i ; done
--
On two occasions I have been asked [by members of Parliament!], 'Pray,
Mr. Babbage, if you put into the machine wrong figures, will the right
answers come out?' I am not able rightly to apprehend the kind of
confusion of ideas that could provoke such a question.
-- Charles Babbage
_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug