From 32f8d43b61e357d38a3bf4f6a5bf63b2aa547945 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 29 Mar 2001 08:59:48 +0000 Subject: fix comparison of expansions with expanded prefix (missing quoting) (13833) --- Completion/Core/_expand | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Core/_expand') diff --git a/Completion/Core/_expand b/Completion/Core/_expand index 81ca913ba..4835e4efc 100644 --- a/Completion/Core/_expand +++ b/Completion/Core/_expand @@ -93,7 +93,7 @@ if [[ "$word" = [\~\$]*/* && "$tmp" = (yes|true|on|1|changed) ]]; then eval 'epre=( ${(e)~${word%%/*}} )' 2>/dev/null if [[ -n "$epre" && $#epre -eq 1 ]]; then opre="${word%%/*}" - pre="$epre[1]" + pre="${(q)epre[1]}" [[ "$tmp" != changed || $#exp -gt 1 || "${opre}${exp[1]#${pre}}" != "$word" ]] && exp=( ${opre}${^exp#${pre}} ) fi -- cgit 1.4.1