This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem with bash


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]