-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue: Incorrect quote handling on PowerShell>=v7.3 when sudo'ing without {}
#297
Comments
Hello, may I ask if it is possible to configure the shell or terminal so that they could automatically add curl braces for gsudo? |
It doesn't not work that way. When powershell finds the curly braces it parses it content as a scriptblock,, and encodes it in base64 before passing it to gsudo.
This mechanism was crafted so it's easy to call pwsh from within pwsh. |
Thank you for your explanation. I wondered if it is possible to make powershell or terminal automatically convert the raw command into base64 when they execute gsudo by configuring them |
Issue Description
Creating this ticket for a future self to investigate and fix: https://stackoverflow.com/a/74440425/97471
See #295.
Looks like this quoting is required on Pwsh >= 7.3.0: https://github.com/gerardog/gsudo/blob/v2.4.0/src/gsudo/Helpers/CommandToRunAdapter.cs#L159
Steps to Reproduce
Screenshots
Context:
The text was updated successfully, but these errors were encountered: