mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-20 05:53:52 +01:00
fix comparison of expansions with expanded prefix (missing quoting) (13833)
This commit is contained in:
parent
2249e5c319
commit
32f8d43b61
@ -1,5 +1,8 @@
|
|||||||
2001-03-29 Sven Wischnowsky <wischnow@zsh.org>
|
2001-03-29 Sven Wischnowsky <wischnow@zsh.org>
|
||||||
|
|
||||||
|
* 13833: Completion/Core/_expand: fix comparison of expansions
|
||||||
|
with expanded prefix (missing quoting)
|
||||||
|
|
||||||
* 13830: Completion/Core/_multi_parts: next try to get rid of
|
* 13830: Completion/Core/_multi_parts: next try to get rid of
|
||||||
empty strings being added as possible completion by
|
empty strings being added as possible completion by
|
||||||
_multi_parts
|
_multi_parts
|
||||||
|
@ -93,7 +93,7 @@ if [[ "$word" = [\~\$]*/* && "$tmp" = (yes|true|on|1|changed) ]]; then
|
|||||||
eval 'epre=( ${(e)~${word%%/*}} )' 2>/dev/null
|
eval 'epre=( ${(e)~${word%%/*}} )' 2>/dev/null
|
||||||
if [[ -n "$epre" && $#epre -eq 1 ]]; then
|
if [[ -n "$epre" && $#epre -eq 1 ]]; then
|
||||||
opre="${word%%/*}"
|
opre="${word%%/*}"
|
||||||
pre="$epre[1]"
|
pre="${(q)epre[1]}"
|
||||||
[[ "$tmp" != changed || $#exp -gt 1 ||
|
[[ "$tmp" != changed || $#exp -gt 1 ||
|
||||||
"${opre}${exp[1]#${pre}}" != "$word" ]] && exp=( ${opre}${^exp#${pre}} )
|
"${opre}${exp[1]#${pre}}" != "$word" ]] && exp=( ${opre}${^exp#${pre}} )
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user