My memory may be failing me. I'm pretty sure I used '-d' to get a listing of all entries in the cwd that are marked as directories. So if I $(mkdir foo bar baz) and then use 'ls -d' I expect to see "./ ./foo ./bar ./baz".
On Mon, Jun 25, 2018 at 4:18 PM, Steve Christiansen <[email protected]> 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 "." > > Steve > > > _______________________________________________ > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug > _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
