From 32251cbac450fcd2360eea908c2950900b3c48ac Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 23 Apr 2010 21:51:59 +0000 Subject: users/15028 modified to unquote in one place: with path-completion false or accept-exact-dirs true we need to unquote the string before sticking it in the current path --- Completion/Unix/Type/_path_files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Unix/Type') diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index fa02656d0..9445ac77c 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -357,7 +357,7 @@ for prepath in "$prepaths[@]"; do cpre= if [[ ( -n $accept_exact_dirs || -z $path_completion ) && \ - $pre = (#b)(*)/([^/]#) ]]; then + ${(Q)pre} = (#b)(*)/([^/]#) ]]; then # We've been told either that we can accept an exact directory prefix # immediately, or that path expansion is inhibited. Try the longest # path prefix first: in the first case, this saves stats in the simple -- cgit 1.4.1