mattn / sudo

sudo for windows
MIT License
750 stars 41 forks source link

sudo stop when executing powershell.exe #5

Open itn3000 opened 7 years ago

itn3000 commented 7 years ago

Environment

windows 8.1 x64, $PSVersionTable output is here

Name                           Value
----                           -----
PSVersion                      5.0.10586.117
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.10586.117
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Steps to reproduce

execute sudo.exe powershell in cmd.exe

Expected result

boot powershell prompt, and be able to execute command.

Actual result

freeze after displaying following message.

Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.

(additionally, sudo.exe powershell Get-ChildItem was worked expectedly.)

mattn commented 7 years ago

I'm not sure. I'll look into it in later. Until the figure-out, you can use sudo -spawn powershell.

itn3000 commented 7 years ago

Thank you for response. I executed with adding -spawn option, powershell was booted on another window, thanks.