You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wasn't sure whether to post this bug here or on rbenv-gemsets, so I'm putting it here and cc-ing @jamis.
Once you have rbenv-gemsets installed, rehashing can produce a spurious file in shims called * (no joke). I can't even figure out a way to explain it briefly, so I'm just going to show how I found it:
At the top of make_shims in rbenv-rehash add echo "glob: $@"
That second item gets truncated to *, a file of that name is created and then treated as a proper shim. At the moment, this isn't a huge deal, but it's worth considering now before the gemsets idea grows.
The text was updated successfully, but these errors were encountered:
Yeah, this is an issue with rbenv-gemsets, not rbenv. The rehash/gemset.bash plugin should have shopt -s nullglob, so that it expands to nothing instead of the glob pattern when nothing matches. I thought I had that in there, honestly; I must have removed it during experimenting and forgot to add it back. I'll work on that tonight.
I wasn't sure whether to post this bug here or on
rbenv-gemsets
, so I'm putting it here and cc-ing @jamis.Once you have
rbenv-gemsets
installed, rehashing can produce a spurious file inshims
called*
(no joke). I can't even figure out a way to explain it briefly, so I'm just going to show how I found it:At the top of
make_shims
inrbenv-rehash
addecho "glob: $@"
Run
rbenv rehash
Get this result:
That second item gets truncated to
*
, a file of that name is created and then treated as a proper shim. At the moment, this isn't a huge deal, but it's worth considering now before the gemsets idea grows.The text was updated successfully, but these errors were encountered: