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

chruby 2.1 has surprise match #445

Open
lloeki opened this issue Sep 11, 2020 · 1 comment
Open

chruby 2.1 has surprise match #445

lloeki opened this issue Sep 11, 2020 · 1 comment

Comments

@lloeki
Copy link

lloeki commented Sep 11, 2020

Spot the mistake:

$ chruby
   ruby-1.9.3-p551
   ruby-2.0.0-p648
   ruby-2.1.10
   ruby-2.2.10
   ruby-2.3.8
   ruby-2.4.10
   ruby-2.5.8
   ruby-2.6.6
   ruby-2.7.1
$ chruby 2.1
$ chruby
   ruby-1.9.3-p551
   ruby-2.0.0-p648
   ruby-2.1.10
 * ruby-2.2.10
   ruby-2.3.8
   ruby-2.4.10
   ruby-2.5.8
   ruby-2.6.6
   ruby-2.7.1

The match is fairly naive, so to discriminate, one has to write either 2.1. or ruby-2.1 (both being incompatible with rbenv, which is sadly what may end up in .ruby-version)

@Fryguy
Copy link

Fryguy commented Jan 31, 2024

This looks like a duplicate of #291

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

2 participants