Igor Pechtchanski wrote:
Well, if you really want something equivalent to 'ls *', you'd need to do something likeHuh?!? Just type ls! You don't need anything else and certainly not something as complicated as what you propose.
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...
--
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/