Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Symlinks cause weirdness related to trailing slash #1775

Copy link
Copy link
@halr9000

Description

@halr9000
Issue body actions

I found that tab expansion doesn't work in a symlinked folder. Investigation found that the shell can't see ANY items in the $PWD, but /something/ causes things to right themselves in the same session.

Steps to reproduce

cd /tmp
mkdir test1
mkdir test1/foo
mkdir test1/bar
ln -s test1 test2 # using /bin/ln here
dir test1 # "case A"
dir test2 # "case B"

Expected behavior

Output from case A should equal case B, but the "Directory name" should read "/tmp/test2".

Actual behavior

Case B shows only the file entry of the symlink. That would be ok in some cases, HOWEVER what you see is that this behavior affects lots of things like tab expansion. For example, to continue repro:

cd test2
cd [TAB] # nothing happens with any tab completion commands here

Note that you can get around some of the issues by manually appending a forward-slash. e.g. dir test2/.

Environment data

OSX 10.11.6

Name                           Value                                                                                     
----                           -----                                                                                     
PSVersion                      6.0.0-alpha                                                                               
PSEdition                      Core                                                                                      
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                   
BuildVersion                   3.0.0.0                                                                                   
GitCommitId                    v6.0.0-alpha.8                                                                            
CLRVersion                                                                                                               
WSManStackVersion              3.0                                                                                       
PSRemotingProtocolVersion      2.3                                                                                       
SerializationVersion           1.1.0.1         
Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productOS-macOSResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.