Please support `-s`/`--shell` (run a shell)
Open
Nobody has claimed this yet.
Issue-Feature
- Dominant language
- Rust
- Stars
- 5.9k
- Forks
- 180
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 2
Description
sudo for Linux supports -s/--shell to run a shell as the target user. Please consider supporting the same option, as a shorthand for sudo cmd.
sudo.ps1 could check for this option and handle it so that it's a shorthand for starting powershell via sudo instead, so that people running sudo -s from cmd get cmd, and people running sudo -s from powershell get powershell.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with sudo.ps1 and the existing command invocation path. Done means that -s and --shell start the appropriate shell as the target user: cmd when invoked from cmd, and PowerShell when invoked from PowerShell.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli, operating-systems
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100