mattn / sudo

sudo for windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sudo stop when executing powershell.exe

itn3000 opened this issue · comments

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.)

commented

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

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