sudo icon indicating copy to clipboard operation
sudo copied to clipboard

Please support `-s`/`--shell` (run a shell)

Open joshtriplett opened this issue 1 year ago • 1 comments

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.

joshtriplett avatar Feb 09 '24 02:02 joshtriplett

Thanks for the feedback - this seems like reasonable functionality for us to investigate. Removing the needs-triage label for now.

joadoumie avatar Feb 14 '24 22:02 joadoumie