bug-fileutils
[Top][All Lists]
Advanced

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

Re: ls: avoiding error msg on non-existant file


From: Karl O. Pinc
Subject: Re: ls: avoiding error msg on non-existant file
Date: Fri, 22 Nov 2002 11:22:05 -0600

On 2002.11.22 00:36 Bob Proulx wrote:
Karl O . Pinc <address@hidden> [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 <address@hidden>





reply via email to

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