Re: ls: avoiding error msg on non-existant file
[email protected] (Bob Proulx)
| Newsgroups | gmane.comp.gnu.fileutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
Karl O. Pinc <[email protected]> [2002-11-22 11:22:05 -0600]: > >> if [ ! -e . ] ; then ls pattern ; fi > if [ -s . ] ; then ls pattern ; fi > > Don't know what I was thinking. You know how sometimes you say something and you know it is wrong but other people just don't let it go by? This is one of those. :-) Sorry but won't -s . always be true since . is a non-zero sized file because all directories contain . and .. in them? And concerning your previous problem I really wanted to contribute more to it. But I was only reading it at a 50% comprehension level. But it seems that you have solved your problem already. Bob