Permalink
Browse files

Merge pull request #217 from alecchen/master

remove "+=" operator in rbenv-rehash to support bash-3.0
  • Loading branch information...
2 parents e5c64db + 3a94dae commit 6778c8e905d774d4dc70724c455e6fcff4c1d3e1 @sstephenson sstephenson committed Apr 23, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 libexec/rbenv-rehash
@@ -85,17 +85,17 @@ 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
for ((i=0; i<length; i++)); do
char="${shim:$i:1}"
if [[ "$char" =~ [[:alnum:]] ]]; then
- result+="$char"
+ result="$result$char"
else
- result+="$(printf "_%02x" \'"$char")"
+ result="$result$(printf "_%02x" \'"$char")"
fi
done
fi

0 comments on commit 6778c8e

Please sign in to comment.