On 2018-06-25 16:18, Steve Christiansen wrote:
On 6/25/2018 3:52 PM, Rich Shepard wrote:

According to 'man ls' the -d option should 'list directories themselves, not their
contents'. But, here it doesn't work. For example from within ~/:

$ ls -d
./

$ ls --directory
./

  I doubt this is a Slackware issue and I'm curious why it might not be
working as expected. Has anyone else run into this issue?

Rich
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug


Rich,
It's working as expected.
"ls" with no arguments lists the contents of the current directory.
"ls -d" with no other arguments lists the current directory, not its
contents, which is of course "."

To expand that on that correct response,

try ls -d */

for an edited example:
michael$ ls -d */
Documents
Downloads
Finance
Pictures
  ...



--
      Michael Rasmussen, Portland Oregon
    Be Appropriate && Follow Your Curiosity
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to