Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Andrew DeFaria <ADeFaria@Salira.com>
Subject: Re: problem with bash
Date: Thu, 14 Nov 2002 10:58:53 -0800
Lines: 18
Message-ID: <3DD3F26D.8000609@Salira.com>
References: <20021114103412.A36130@reliant.immure.com> <Pine.GSO.4.44.0211141221480.4275-100000@slinky.cs.nyu.edu>
NNTP-Posting-Host: 206.184.204.2
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: main.gmane.org 1037300303 15057 206.184.204.2 (14 Nov 2002 18:58:23 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Thu, 14 Nov 2002 18:58:23 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0
X-Accept-Language: en-us, en, ru, zh

Igor Pechtchanski wrote:

> Well, if you really want something equivalent to 'ls *', you'd need to 
> do something like
>
> find . -maxdepth 1 \( -name .\* -o -print \) | xargs ls
>
> The "-maxdepth 1" is to not descend recursively into directories, and 
> the "-name .\*" is to avoid listing hidden files/directories (which 
> would not be matched by the '*' glob). The "-type f" is actually 
> wrong, as '*' will match directories as well.
>
> Also beware that ls may be an alias, and xargs will run the actual 
> executable in the path...

Huh?!? Just type ls! You don't need anything else and certainly not 
something as complicated as what you propose.




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

