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

fix quoting of ruby env command #356

Merged
merged 1 commit into from
Nov 13, 2023
Merged

Conversation

ccutrer
Copy link
Contributor

@ccutrer ccutrer commented Sep 26, 2023

I use chruby and zsh. Without this, it was running

/bin/zsh -lic 'chruby-exec "3.1" -- ruby' -rjson -e "printf(%{RUBY_ENV_ACTIVATE%sRUBY_ENV_ACTIVATE}, JSON.dump([ENV.to](http://env.to/)_h))" which just hangs indefinitely, because the -rjson ... arguments were getting passed to zsh, and zsh isn't passing them through. The entire activation command needs to be passed in to makeShellCommand so that it can properly quote the entire command going to the shell.

@ko1 ko1 enabled auto-merge (rebase) November 13, 2023 02:50
@ko1 ko1 merged commit b170c85 into ruby:master Nov 13, 2023
@ccutrer ccutrer deleted the activate-ruby-quoting branch November 13, 2023 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants