{"action":"created","issue":{"url":"https://api.github.com/repos/capistrano/sshkit/issues/303","labels_url":"https://api.github.com/repos/capistrano/sshkit/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/capistrano/sshkit/issues/303/comments","events_url":"https://api.github.com/repos/capistrano/sshkit/issues/303/events","html_url":"https://github.com/capistrano/sshkit/issues/303","id":120151740,"number":303,"title":"1.8.0 breaks capistrano-rbenv due to \"~\" in environment variable values no longer being expanded","user":{"login":"rudylee","id":191448,"avatar_url":"https://avatars.githubusercontent.com/u/191448?v=3","gravatar_id":"","url":"https://api.github.com/users/rudylee","html_url":"https://github.com/rudylee","followers_url":"https://api.github.com/users/rudylee/followers","following_url":"https://api.github.com/users/rudylee/following{/other_user}","gists_url":"https://api.github.com/users/rudylee/gists{/gist_id}","starred_url":"https://api.github.com/users/rudylee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudylee/subscriptions","organizations_url":"https://api.github.com/users/rudylee/orgs","repos_url":"https://api.github.com/users/rudylee/repos","events_url":"https://api.github.com/users/rudylee/events{/privacy}","received_events_url":"https://api.github.com/users/rudylee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-12-03T11:40:27Z","updated_at":"2015-12-03T18:26:54Z","closed_at":null,"body":"I am using `capistrano-rbenv` in my project for deployment\r\n\r\nI just ran a `bundle update` which updates the sshkit version to 1.8.0 and my capistrano deployment starts to break.\r\n\r\nHere is the full output of my failed deployment: https://gist.github.com/rudylee/5f560d70e6a2fe9eaad0 ( see line 238 )\r\n\r\n```\r\nDEBUG [81d1a12e] Command: cd /home/deploy/version/releases/20151203100835 && ( export RBENV_ROOT=\"~/.rbenv\" RBENV_VERSION=\"2.2.0\" ; ~/.rbenv/bin/rbenv exec bundle install --path /home/deploy/version/shared/bundle --without development test --jobs=3 --retry=3 --deployment --quiet )\r\nDEBUG [cb8f1d7e] \trbenv: version `2.2.0' is not installed (set by RBENV_VERSION environment variable)\r\n```\r\n\r\nI think the problem is related to this commit https://github.com/capistrano/sshkit/commit/de492dd23db9363efa1490003636c8d1391f5fbb ( previous version doesn't have export in front of the command )\r\n\r\nIn the meantime, I can fix it my specifying the sshkit version in my Gemfile to 1.7.1"},"comment":{"url":"https://api.github.com/repos/capistrano/sshkit/issues/comments/161739378","html_url":"https://github.com/capistrano/sshkit/issues/303#issuecomment-161739378","issue_url":"https://api.github.com/repos/capistrano/sshkit/issues/303","id":161739378,"user":{"login":"mattbrictson","id":189693,"avatar_url":"https://avatars.githubusercontent.com/u/189693?v=3","gravatar_id":"","url":"https://api.github.com/users/mattbrictson","html_url":"https://github.com/mattbrictson","followers_url":"https://api.github.com/users/mattbrictson/followers","following_url":"https://api.github.com/users/mattbrictson/following{/other_user}","gists_url":"https://api.github.com/users/mattbrictson/gists{/gist_id}","starred_url":"https://api.github.com/users/mattbrictson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattbrictson/subscriptions","organizations_url":"https://api.github.com/users/mattbrictson/orgs","repos_url":"https://api.github.com/users/mattbrictson/repos","events_url":"https://api.github.com/users/mattbrictson/events{/privacy}","received_events_url":"https://api.github.com/users/mattbrictson/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T18:26:54Z","updated_at":"2015-12-03T18:26:54Z","body":"@rudylee I renamed the title of this issue to better summarize the problem. I hope that's OK!"}}