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

Use RbConfig.ruby to invoke ruby executable #143

Closed
ccmywish opened this issue Jun 11, 2023 · 0 comments
Closed

Use RbConfig.ruby to invoke ruby executable #143

ccmywish opened this issue Jun 11, 2023 · 0 comments

Comments

@ccmywish
Copy link

On Windows,If we use rbenv for Windows, rerun ./app.rb and rerun ruby ./app.rb will not work, because it seem directly call ruby.exe.

rbenv for Windows has make ruby.exe a fake stub (not the real ruby.exe), so the method above won't work. So, how about making the invocation using RbConfig.ruby to get an absolute path?

irb(main):001:0> RbConfig.ruby
=> "C:/Ruby-on-Windows/3.2.0-1/bin/ruby.exe"
@ccmywish ccmywish closed this as not planned Won't fix, can't repro, duplicate, stale Jun 5, 2024
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

No branches or pull requests

1 participant