소스 검색

remove "+=" operator to support bash-3.0

pull/360/head^2
Alec Chen 14 년 전
부모
커밋
3a94daeaf8
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +3
    -3
      libexec/rbenv-rehash

+ 3
- 3
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<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

불러오는 중...
취소
저장