problem with bash
Andrew DeFaria
ADeFaria@Salira.com
Thu Nov 14 11:22:00 GMT 2002
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/
More information about the Cygwin
mailing list