[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in ls
From: |
Paul Jarc |
Subject: |
Re: bug in ls |
Date: |
27 Dec 2000 12:20:57 -0500 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 |
"Mike" <address@hidden> 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 in ls, Mike, 2000/12/23
- Re: bug in ls,
Paul Jarc <=