From 2fe47648307fc474776604b8ad71caa7eb032f5f Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Wed, 27 Jul 2016 10:55:42 -0700 Subject: [PATCH] Fix Start-DevPowerShell for Unix --- build.psm1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.psm1 b/build.psm1 index 8941e27723..25614ea826 100644 --- a/build.psm1 +++ b/build.psm1 @@ -895,6 +895,12 @@ function Start-DevPowerShell { ) try { + if ((-not $NoNewWindow) -and ($IsLinux -or $IsOSX)) + { + Write-Warning "Start-DevPowerShell -NoNewWindow is implied on non-windows systems" + $NoNewWindow = $true + } + if (-not $LoadProfile) { $ArgumentList = @('-noprofile') + $ArgumentList }