Fix unquoted variable expansions in pip plugin rm commands

Quote file paths to prevent word splitting and globbing issues.

Changed:
- Line 20: rm $ZSH_PIP_CACHE_FILE → rm "$ZSH_PIP_CACHE_FILE"
- Line 44: rm $tmp_cache → rm "$tmp_cache"

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
aviu16 2026-02-16 16:03:12 -05:00
commit 347c99825f
2 changed files with 3 additions and 2 deletions

View file

@ -17,7 +17,7 @@ fi
ZSH_PIP_INDEXES=(https://pypi.org/simple/)
zsh-pip-clear-cache() {
rm $ZSH_PIP_CACHE_FILE
rm "$ZSH_PIP_CACHE_FILE"
unset piplist
}
@ -41,7 +41,7 @@ zsh-pip-cache-packages() {
>> $tmp_cache
done
sort $tmp_cache | uniq | tr '\n' ' ' > $ZSH_PIP_CACHE_FILE
rm $tmp_cache
rm "$tmp_cache"
fi
}

1
rxjs-pr Submodule

@ -0,0 +1 @@
Subproject commit c15b37f81ba5f5abea8c872b0189a70b150df4cb