Canonicalize symlinked paths to rbenv executable #49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem:
If
rbenv-doctor
is downloaded and installed locally (in the PATH), runningrbenv doctor
results in a warning:The Homebrew installation has
/usr/local/bin/rbenv
symlinked to/usr/local/Cellar/rbenv/1.2.0/libexec/rbenv
.Fix:
Canonicalizing symlinks results in a single canonical path:
NOTE:
Running the command directly via
curl
, as per the README, results in a single path:Running the command directly as
/some/path/rbenv-doctor
results in a single path. When launched viarbenv
is when the multiple paths are detected.I assume this discrepancy may be related to my environment, but the canonicalized path is the correct result.