Currently, sudo only works for elevating an actual executable1. For something like Get-ChildItem (gci) in PowerShell, that's not an executable, it's a cmdlet. We'll need a proper PowerShell module to be able to properly support various PowerShell scenarios.
In the time being, we're working on the sudo.ps1 script to provide a better experience for using sudo from PowerShell.
### Tasks
- [ ] Support for PowerShell cmdlets
- [ ] Support for PowerShell script blocks
- [ ] Support for PowerShell aliases
- [ ] Should `sudo.ps1` pass `-noprofile` to the elevated PowerShell?
- [ ] #6
Currently, sudo only works for elevating an actual executable1. For something like
Get-ChildItem(gci) in PowerShell, that's not an executable, it's a cmdlet. We'll need a proper PowerShell module to be able to properly support various PowerShell scenarios.In the time being, we're working on the
sudo.ps1script to provide a better experience for using sudo from PowerShell.Footnotes
It also supports CMD intrinsics, when run from CMD.exe. ↩