diff --git a/libexec/rbenv-rehash b/libexec/rbenv-rehash index 5757dcfe..eebc4d3c 100755 --- a/libexec/rbenv-rehash +++ b/libexec/rbenv-rehash @@ -85,7 +85,7 @@ shim_variable_name() { if [[ ! "$shim" =~ [^[:alnum:]_-] ]]; then shim="${shim//_/_5f}" shim="${shim//-/_2d}" - result+="$shim" + result="$result$shim" else local length="${#shim}" local char i @@ -93,9 +93,9 @@ shim_variable_name() { for ((i=0; i