From 21391c8d2f8781c840b538babf869ad5a1157f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohnic=CC=81?= Date: Thu, 13 Dec 2012 01:45:06 +0100 Subject: [PATCH] put up a note why `version-file-read` is tricky --- libexec/rbenv-version-file-read | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/rbenv-version-file-read b/libexec/rbenv-version-file-read index 9a3cd05b..d6027c4c 100755 --- a/libexec/rbenv-version-file-read +++ b/libexec/rbenv-version-file-read @@ -5,8 +5,8 @@ set -e VERSION_FILE="$1" if [ -e "$VERSION_FILE" ]; then - # Read and print the first non-whitespace word from the specified - # version file. + # 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. version="" while read -a words; do word="${words[0]}"