mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +01:00
Better quoting for directories with spaces.
This commit is contained in:
parent
34c15d8a57
commit
ffaba98e72
@ -418,9 +418,9 @@ for prepath in "$prepaths[@]"; do
|
||||
# Next we see if this component is ambiguous.
|
||||
|
||||
if [[ "$tmp3" = */* ]]; then
|
||||
tmp4=$tmp1[(I)^${(q)tmp1[1]%%/*}/*]
|
||||
tmp4=$tmp1[(I)^${${tmp1[1]%%/*}//(#b)([][\\<>(|)^#~*?])/\\$match[1]}/*]
|
||||
else
|
||||
tmp4=$tmp1[(I)^${(q)tmp1[1]}]
|
||||
tmp4=$tmp1[(I)^${tmp1[1]//(#b)([][\\<>(|)^#~*?])/\\$match[1]}]
|
||||
fi
|
||||
|
||||
if [[ "$tpre" = */* ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user