[PLUG] ls -d does not work as it should
Steve Christiansen
steveshome at comcast.net
Mon Jun 25 23:18:29 UTC 2018
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
> PLUG at pdxlinux.org
> 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
More information about the PLUG
mailing list