Subject: bug#12664: Not possible to list directories recursiv (-d switch ignores -R)

From: Bob Proulx <[email-masked]>
Date: Wed, 17 Oct 2012 14:41:14 -0600

Vamp898 wrote:
> Documentation says the following:
> 
> -d, --directory :: list directory entries instead of contents, and do not 
> dereference symbolic links
> 
> and
> 
> -R, --recursive :: list subdirectories recursively
> 
> And this is what i get when i use ls -dR /
> 
> $ ls -dR /
> /

Right.  Because the -d said to list the directory and not the contents.
In addition to everything Eric said see also this FAQ entry:

  http://www.gnu.org/software/coreutils/faq/#ls-_002dd-does-not-list-directories_0021

Bob