mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Fix for #491: make powershell.exe work in new window
FullCLR windows host doesn't read keys when run in separate window. Fix: don't use Start-Process -Wait $false -NoNewWindow $false Instead, ommit this parameters. Seems like a bug in Start-Process.
This commit is contained in:
1 parent
1d53e655f4
commit
f8abd74658
1 file changed
+5
-2
@@ -38,9 +38,12 @@ function Start-DevPSGithub
|
||||
$startProcessArgs = @{
|
||||
FilePath = "$binDir\powershell.exe"
|
||||
ArgumentList = "$ArgumentList"
|
||||
NoNewWindow = $NoNewWindow
|
||||
Wait = $NoNewWindow
|
||||
}
|
||||
|
||||
if ($NoNewWindow) {
|
||||
$startProcessArgs.NoNewWindow = $true
|
||||
$startProcessArgs.Wait = $true
|
||||
}
|
||||
|
||||
Start-Process @startProcessArgs
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user