home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] path completion query

On Thu, 5 Apr 2018 09:17:21 -0400
J C Nash <profjcnash [ at ] gmail [ dot ] com> wrote:

> When I am in a terminal and want to cd to the appropriate folder
> I typically type just the first couple of characters then hit tab.
> I've noticed that regular directories add the /, but command
> completion for the symlinks leaves it off.

What shell are you using?  Under Bash version 4.4 on Debian Stretch,
I get the / when I hit Tab.

> I'm assuming that is because the symlink does not have the d flag
> available.

Symlinks under Linux don't have any flags or permissions associated with
them.  Their permissions always show up as 0777.  The actual permissions
and flags are controlled by the pointed-to file.

Regards,

Dianne.

references