rbenv / rbenv-each

rbenv plugin to Run a command across all installed rubies.
Creative Commons Zero v1.0 Universal
91 stars 18 forks source link

doesn't execute for `system` ruby #16

Open jasonkarns opened 9 years ago

jasonkarns commented 9 years ago

Is rbenv-each intended to also execute the command against the system ruby?

rbenv versions includes the system ruby in its output, but rbenv versions --bare does not. Is this a bug with rbenv versions? Or should rbenv-each not be using --bare?

mislav commented 9 years ago

"system" is purely for user convenience when reading human-readable output. it should not actually get listed among rbenv versions, since it's not an actual version that rbenv manages.

I don't think rbenv each should iterate over "system".

jasonkarns commented 8 years ago

Speaking anecdotally, I think most of the time I run each I want the command executed in the system ruby as well. For the time being, it's probably better to not change the current behavior. If #1 ever gets implemented, I think I'd like to see system included by default, and excludable via whatever mechanism accomplishes #1