Fix Start-DevPowerShell for PowerShellCore edition on windows

This commit is contained in:
Sergei Vorobev 2016-07-27 12:27:41 -07:00
parent 70ff0cef19
commit ce5cc3ca37

View file

@ -895,9 +895,9 @@ function Start-DevPowerShell {
)
try {
if ((-not $NoNewWindow) -and ($IsLinux -or $IsOSX))
if ((-not $NoNewWindow) -and ($IsCoreCLR))
{
Write-Warning "Start-DevPowerShell -NoNewWindow is implied on non-windows systems"
Write-Warning "Start-DevPowerShell -NoNewWindow is currently implied in PowerShellCore edition https://github.com/PowerShell/PowerShell/issues/1543"
$NoNewWindow = $true
}