Skip to content
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

Custom entry point for "sudo" #16

Open
be5invis opened this issue May 4, 2017 · 2 comments
Open

Custom entry point for "sudo" #16

be5invis opened this issue May 4, 2017 · 2 comments

Comments

@be5invis
Copy link

be5invis commented May 4, 2017

Sudo uses a fixed entry point for powershell instance: https://github.com/lukesampson/psutils/blob/master/sudo.ps1#L62

Could this be customizable?

@lukesampson
Copy link
Owner

What do you have in mind? It was only ever intended to run from PowerShell and so it needs to start the same shell in order for the command to run as though it had been invoked from the current shell. I guess if you wanted to make a sudo.cmd then it could start cmd.exe, but changing the start process wouldn't be the only thing you'd need to customize.

@be5invis
Copy link
Author

be5invis commented May 4, 2017

@lukesampson
I've did some experiments, maybe you can add a "Wrapper" before the $a part in https://github.com/lukesampson/psutils/blob/master/sudo.ps1#L63.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants