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 --- ChangeLog | 9 ++++++++- Completion/Unix/Type/_path_files | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 73121da47..b790b381c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-04-23 Peter Stephenson + + * users/15028 (modified to do the unquoting a bit more + logically): Completion/Unix/Type/_path_files: for + path-completion false and accept-exact-dirs true we need to + unquote the word from the command line. + 2010-04-20 Peter Stephenson * 27889: Src/subst.c, Test/D04parameter.ztst: Force more use of @@ -13045,5 +13052,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.4960 $ +* $Revision: 1.4961 $ ***************************************************** 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