From ffaba98e725982bcfce445ec910ad015cee05011 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 3 Apr 2000 11:05:16 +0000 Subject: Better quoting for directories with spaces. --- Completion/Core/_path_files | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files index ac4614dd8..ac6fcf604 100644 --- a/Completion/Core/_path_files +++ b/Completion/Core/_path_files @@ -418,9 +418,9 @@ for prepath in "$prepaths[@]"; do # Next we see if this component is ambiguous. if [[ "$tmp3" = */* ]]; then - tmp4=$tmp1[(I)^${(q)tmp1[1]%%/*}/*] + tmp4=$tmp1[(I)^${${tmp1[1]%%/*}//(#b)([][\\<>(|)^#~*?])/\\$match[1]}/*] else - tmp4=$tmp1[(I)^${(q)tmp1[1]}] + tmp4=$tmp1[(I)^${tmp1[1]//(#b)([][\\<>(|)^#~*?])/\\$match[1]}] fi if [[ "$tpre" = */* ]]; then -- cgit 1.4.1