"Mike" <[EMAIL PROTECTED]> writes:
> when i try to do a 'ls -d' to get ONLY the directories, it shows nothing.
> but there are directories that exists, if i do a 'ls' i can see them. is
> this a known bug?

This isn't a bug.  You've misunderstood what -d is supposed to do.
Without -d, ls shows the contents of . (or the directories given on
the command line).  With -d, only the directories themselves are
listed, not their contents, but -d doesn't (and isn't meant to) affect
*which* directories are examined.  To get (almost) the behavior you
want, use ls -d together with shell globbing:
$ ls -d */


paul

_______________________________________________
Bug-fileutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-fileutils

Reply via email to