GNU bug report logs - #12664
Not possible to list directories recursiv (-d switch ignores -R)

Previous Next

Package: coreutils;

Reported by: Vamp898 <vamp898 <at> ignaz.org>

Date: Wed, 17 Oct 2012 18:10:01 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Bob Proulx <bob <at> proulx.com>
To: 12664 <at> debbugs.gnu.org, Vamp898 <vamp898 <at> ignaz.org>
Subject: bug#12664: Not possible to list directories recursiv (-d switch ignores -R)
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




This bug report was last modified 12 years and 269 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.