From 3a94daeaf848211d93b6e83617623e468555c205 Mon Sep 17 00:00:00 2001 From: Alec Chen Date: Mon, 23 Apr 2012 22:11:19 +0800 Subject: [PATCH] remove "+=" operator to support bash-3.0 --- libexec/rbenv-rehash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libexec/rbenv-rehash b/libexec/rbenv-rehash index 5757dcf..eebc4d3 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