mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Fix unquoted variable expansions in pow plugin
Quote variable expansions to prevent word splitting and globbing issues: - Line 35: echo $basedir → echo "$basedir" - Line 40: basename $basedir → basename "$basedir" Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
88659ed193
commit
67bdda91f5
2 changed files with 3 additions and 2 deletions
|
|
@ -32,12 +32,12 @@ rack_root(){
|
||||||
|
|
||||||
builtin cd "$orgdir" 2>/dev/null
|
builtin cd "$orgdir" 2>/dev/null
|
||||||
[[ ${basedir} == "/" ]] && return 1
|
[[ ${basedir} == "/" ]] && return 1
|
||||||
echo $basedir
|
echo "$basedir"
|
||||||
}
|
}
|
||||||
|
|
||||||
rack_root_detect(){
|
rack_root_detect(){
|
||||||
basedir=$(rack_root)
|
basedir=$(rack_root)
|
||||||
echo `basename $basedir | sed -E "s/.(com|net|org)//"`
|
echo `basename "$basedir" | sed -E "s/.(com|net|org)//"`
|
||||||
}
|
}
|
||||||
|
|
||||||
kapow(){
|
kapow(){
|
||||||
|
|
|
||||||
1
rxjs-pr
Submodule
1
rxjs-pr
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit c15b37f81ba5f5abea8c872b0189a70b150df4cb
|
||||||
Loading…
Add table
Add a link
Reference in a new issue