Skip to content

rbenv version-file command- printing "${RBENV_ROOT}/version" even when the file doesn't exist #1510

Answered by mislav
impostorsguides asked this question in Q&A
Discussion options

You must be logged in to vote

Is it perhaps correct to say that the filepath printed by the command represents "where the version is expected to reside", rather than "where the version does reside"?

That is correct. The command rbenv version-file not only prints locations of existing files, but also prints a location of a file that, when created, would have dictated the version. I admit this is not clear and potentially confusing.

This is our current documentation for the command:

% rbenv version-file --help
Usage: rbenv version-file [<dir>]

Detect the file that sets the current rbenv version

This could definitely be better document. What do you think we could add to the documentation to clarify this?

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@impostorsguides
Comment options

@mislav
Comment options

@impostorsguides
Comment options

@mislav
Comment options

@impostorsguides
Comment options

Answer selected by impostorsguides
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants