Re: ls: avoiding error msg on non-existant file
"Karl O. Pinc" <[email protected]>
| Newsgroups | gmane.comp.gnu.fileutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
On 2002.11.22 00:36 Bob Proulx wrote: > Karl O . Pinc <[email protected]> [2002-11-18 14:33:30 -0600]: > > To keep there error from coming up, I can > > if [ ! -e . ] ; then ls pattern ; fi > > I am not sure I understood that. Won't '.' always exist? Should'a been: if [ -s . ] ; then ls pattern ; fi Don't know what I was thinking. Karl <[email protected]>