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

Enable passing -h in a ssh -c #305

Open
nixjdm opened this issue Mar 15, 2018 · 1 comment
Open

Enable passing -h in a ssh -c #305

nixjdm opened this issue Mar 15, 2018 · 1 comment
Labels

Comments

@nixjdm
Copy link
Member

nixjdm commented Mar 15, 2018

Click captures the -h in rambo ssh --command 'df -h' as an eager option on ssh, when the user's intention was to have df -h run in the guest.

Does this match the behavior of vagrant ssh -c or normal ssh -c? If not, do we want to change it? It is worth noting that rambo ssh --command "df -h" works. The difference is kind of normal bash behavior. I'm not sure we should change it.

Maybe add a note to the ssh help menu to guide someone in the direction of using double quotes?

@nixjdm
Copy link
Member Author

nixjdm commented Mar 29, 2018

Ans: Rambo is indeed inconsistent with Vagrant's normal usage - which is better. This is a bug that needs fixed.

vagrant ssh -c "df -h" == rambo ssh -c "'df -h'" != rambo ssh -c "df -h"

We want vagrant ssh -c "df -h" == rambo ssh -c "df -h"

@nixjdm nixjdm added bug and removed question labels Mar 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant