rbenv version-file
command- printing "${RBENV_ROOT}/version"
even when the file doesn't exist
#1510
-
Hey y'all, I noticed that
There is a test which covers this behavior here, whose description states I get why Perhaps that interpretation is subjective; I'm happy to stipulate that. But I might be confused if I had encountered this behavior in the wild and I hadn't yet read the source code. From the way this person phrased their question, I might not be the only one who is similarly confused. I'm guessing there's some context I'm missing which explains the behavior, just curious what that is. 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"? Thanks for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
That is correct. The command This is our current documentation for the command:
This could definitely be better document. What do you think we could add to the documentation to clarify this? |
Beta Was this translation helpful? Give feedback.
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:
This could definitely be better document. What do you think we could add to the documentation to clarify this?