Skip to content

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.

3 participants