diff --git a/README.md b/README.md index 2f44bb00..90acd47c 100644 --- a/README.md +++ b/README.md @@ -306,7 +306,7 @@ opposed to this idea. Here's what `rbenv init` actually does: 4. Installs the sh dispatcher. This bit is also optional, but allows rbenv and plugins to change variables in your current shell, making commands like `rbenv shell` possible. The sh dispatcher doesn't do - anything crazy like override `cd` or hack your shell prompt, but if + anything invasive like override `cd` or hack your shell prompt, but if for some reason you need `rbenv` to be a real script rather than a shell function, you can safely skip it. diff --git a/libexec/rbenv-version-file-read b/libexec/rbenv-version-file-read index 03d2db0c..2f046961 100755 --- a/libexec/rbenv-version-file-read +++ b/libexec/rbenv-version-file-read @@ -6,8 +6,7 @@ set -e VERSION_FILE="$1" if [ -e "$VERSION_FILE" ]; then - # Read the first non-whitespace word from the specified version file. - # Be careful not to load it whole in case there's something crazy in it. + # Read the first word from the specified version file. Avoid reading it whole. IFS="${IFS}"$'\r' words=( $(cut -b 1-1024 "$VERSION_FILE") ) version="${words[0]}"