diff --git a/Source/System.Management/Microsoft.PowerShell/Commands/FileSystemProvider.cs b/Source/System.Management/Microsoft.PowerShell/Commands/FileSystemProvider.cs index 4f8ba32f..1c4f1e4b 100644 --- a/Source/System.Management/Microsoft.PowerShell/Commands/FileSystemProvider.cs +++ b/Source/System.Management/Microsoft.PowerShell/Commands/FileSystemProvider.cs @@ -347,6 +347,13 @@ protected override bool ItemExists(string path) protected override PSDriveInfo NewDrive(PSDriveInfo drive) { + // The special drive for *nix systems is always valid + if (drive.Name == FallbackDriveName && + drive.Root == System.IO.Path.GetPathRoot(Environment.CurrentDirectory)) + { + return drive; + } + try { var driveInfo = new System.IO.DriveInfo(System.IO.Path.GetPathRoot(drive.Root));