From 83b3b0769a11b1fb8060695efb72c17a55d04cea Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 6 Nov 2002 08:03:41 +0000 Subject: Bart (17906): de-quote prefix when calling compfiles to remove non-exact matches (17910) --- ChangeLog | 5 +++++ Completion/Unix/Type/_path_files | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a65376061..68c91d838 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-11-06 Sven Wischnowsky + + * 17910: Bart (17906): de-quote prefix when calling compfiles to + remove non-exact matches + 2002-11-04 Peter Stephenson * 17859: Philippe Troin : Src/init.c: Better diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index 75933e623..45308bc93 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -464,7 +464,7 @@ for prepath in "$prepaths[@]"; do # names. This avoids having `foo' complete to `foo' and `foobar'. # The return value is non-zero if the component is ambiguous. - compfiles -r tmp1 "$tmp3" + compfiles -r tmp1 "${(Q)tmp3}" tmp4=$? if [[ "$tpre" = */* ]]; then -- cgit 1.4.1