Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -936,12 +936,15 @@ protected override Collection<PSDriveInfo> InitializeDefaultDrives()
}

#if UNIX
// Porting notes: On platforms with single root filesystems, only
// add the filesystem with the root "/" to the initial drive list,
// Porting notes: On platforms with single root filesystems, ensure
// that we add a filesystem with the root "/" to the initial drive list,
// otherwise path handling will not work correctly because there
// is no : available to separate the filesystems from each other
if (root != StringLiterals.DefaultPathSeparatorString)
continue;
if (root != StringLiterals.DefaultPathSeparatorString
&& newDriveName == StringLiterals.DefaultPathSeparatorString)
{
root = StringLiterals.DefaultPathSeparatorString;
}
#endif

// Porting notes: On non-windows platforms .net can report two
Expand Down