Package: coreutils Version: 8.5-1 Severity: normal
Manual page of ls(1) reads: -d, --directory list directory entries instead of contents, and do not derefer- ence symbolic links "info ls" reads: `-d' `--directory' List just the names of directories, as with other types of files, rather than listing their contents. Do not follow symbolic links listed on the command line unless the `--dereference-command-line' (`-H'), `--dereference' (`-L'), or `--dereference-command-line-symlink-to-dir' options are specified. None of these is helpful in understanding how the option is supposed to work: ls -d ls -dR ls -dr ls --directory -R ls --directory -r ls --directory => They all just return '.' After lot of Google, a miracle command syntax is found: ls -d */ Please improve the documentation and give examples. Btw, the command syntax "*/" is counterintuitive to rest of the ls(1) behavior: ls -a vs. ls -d -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages coreutils depends on: ii libacl1 2.2.49-4 Access control list shared library ii libattr1 1:2.4.44-2 Extended attribute shared library ii libc6 2.11.2-7 Embedded GNU C Library: Shared lib ii libselinux1 2.0.96-1 SELinux runtime shared libraries coreutils recommends no packages. coreutils suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org