Subject: Re: problem with bash
From: Andrew DeFaria <[email-masked]>
To: [email-masked]
Date: Thu, 14 Nov 2002 10:58:53 -0800

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/