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

Add Session.RawCommand() #110

Merged
merged 1 commit into from
Jun 20, 2019
Merged

Add Session.RawCommand() #110

merged 1 commit into from
Jun 20, 2019

Conversation

belak
Copy link
Collaborator

@belak belak commented Jun 19, 2019

My main use case for this would be SSH_ORIGINAL_COMMAND. Many SSH servers set this when running commands on the server itself, and it's very annoying (and error prone) to set without having the RawCommand. I also opted for only calling shlex when needed, as it's an operation which doesn't need to be done in all cases.

This would replace #93 (Proper attribution for @andrewchambers is still there) as the original pull request is missing the line to actually set rawCmd.

@belak
Copy link
Collaborator Author

belak commented Jun 19, 2019

I do sort of wish it was possible to make shlex optional if it's not needed, but this at least removes the call.

@andrewchambers
Copy link
Contributor

Thanks for doing that, I sort of just used my own branch and forgot, cheers :)

@belak belak merged commit 5b6cc70 into master Jun 20, 2019
@belak belak deleted the belak/raw-cmd branch June 20, 2019 03:22
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

Successfully merging this pull request may close these issues.

None yet

3 participants