Skip to content

Commit 346554e

Browse files
authored
Update gsudo-vs-sudo.md
1 parent f4f6873 commit 346554e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/docs/gsudo-vs-sudo.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Comparison with Microsoft sudo
66

77
# Comparison between gsudo and Microsoft sudo
88

9-
`gsudo` was born in 2019 as a productivity tool and is open-source. It has been downloaded over 700k times so far and has enjoyed a warm reception from users.
9+
`gsudo` was born in 2019 as a productivity tool and is open-source. It has been downloaded over 700k times so far and has enjoyed a warm reception from users. It is very easy to install and works from Windows 7 SP1 up to Windows 11.
1010

1111
Microsoft initially declined to create a similar tool, citing security concerns. However `gsudo`'s documentation [challenged this view](security.md) arguing that absolute security is unattainable without altering Windows itself, and that the default same-desktop UAC is not completely secure either.
1212

@@ -21,8 +21,9 @@ Surprisingly, Microsoft's sudo does not leverage new OS features to enhance secu
2121
| ------- | ------- | ------------------ |
2222
| Executes command with elevated permissions | Yes | Yes |
2323
| Supports output redirection (`sudo dir > file.txt`) | Yes | Yes |
24-
| Supports input redirection (`echo md folder \| sudo cmd`) | Yes | Partial (Only with output redirection) |
25-
| Returns the command exit code | Yes | No |
24+
| Supports input redirection (`echo md folder \| sudo cmd`) | Yes | Yes (fixed in v1.0.0, Windows insider build 26080) |
25+
| Returns the command exit code | Yes | Yes (fixed in v1.0.0, Windows insider build 26080) |
26+
| Preserves the current directory | Yes | [It depends](microsoft/sudo#63) |
2627
| Source code available | [Yes](https://github.com/gerardog/gsudo) | Not for `sudo.exe`, but [promised](https://github.com/microsoft/sudo/blob/f8f1d05/README.md#contributing) |
2728

2829
### Security Impersonation Features
@@ -58,7 +59,7 @@ Surprisingly, Microsoft's sudo does not leverage new OS features to enhance secu
5859

5960
| Feature | `gsudo` | Sudo for Windows |
6061
| ------- | ------- | ------------------ |
61-
| Elevation syntax | `gsudo { Script } -args $a,$b` [syntax](usage/powershell.md#using-gsudo-scriptblock-syntax) | Unknown, possibly: `sudo pwsh { script }` |
62+
| Elevation syntax | `gsudo { scriptblock } -args $a,$b` [syntax](usage/powershell.md#using-gsudo-scriptblock-syntax) | Unknown, possibly: `sudo pwsh { scriptblock } -args $a,$b` |
6263
| Auto-complete of last 3 commands | Yes (with [gsudoModule](usage/powershell.md#gsudo-powershell-module)) | No |
6364
| Auto-complete of options | Yes (with [gsudoModule](usage/powershell.md#gsudo-powershell-module)) | No |
6465
| Red # indicator for elevation | Yes (with [gsudoModule](usage/powershell.md#gsudo-powershell-module)) | No |

0 commit comments

Comments
 (0)