mattn / mattn/sudo

sudo stop when executing powershell.exe

Open
#5 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
748
Forks
39
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing sudo.exe powershell in cmd.exe on the reported Windows 8.1 and PowerShell 5.0 environment, then compare it with sudo.exe powershell Get-ChildItem, which reportedly works. Trace the command and interactive-process entry points in the Go project; done means an interactive PowerShell prompt starts and accepts commands without freezing.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, powershell
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.