On Mon, 25 Jun 2018, Steve Christiansen wrote:

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 "."

Steve,

  I interpreted the man page as using the -d option to list only
subdirectories of the cwd.

  Why would ls have an option to tell you you're in the current working
directory?

  What option would you use to list only subdirectories and not files in the
cwd or the subdirectories?

Rich
_______________________________________________
PLUG mailing list
PLUG@pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to