소스 검색

Account for path entries with spaces in remove_from_path

pull/360/head^2
Sam Stephenson 14 년 전
부모
커밋
5d0a6630b9
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. +4
    -1
      libexec/rbenv-which

+ 4
- 1
libexec/rbenv-which 파일 보기

@ -27,7 +27,10 @@ remove_from_path() {
return
fi
for path in ${PATH//:/$'\n'}; do
local paths
IFS=: paths=($PATH)
for path in "${paths[@]}"; do
path="$(expand_path "$path" || true)"
if [ -n "$path" ] && [ "$path" != "$path_to_remove" ]; then
result="${result}${path}:"

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