Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo stop when executing powershell.exe #5

Open
itn3000 opened this issue Jun 16, 2017 · 2 comments
Open

sudo stop when executing powershell.exe #5

itn3000 opened this issue Jun 16, 2017 · 2 comments

Comments

@itn3000
Copy link

itn3000 commented Jun 16, 2017

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
Copy link
Owner

mattn commented Jun 16, 2017

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

@itn3000
Copy link
Author

itn3000 commented Jun 16, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants