about summary refs log tree commit diff
path: root/Completion/Core
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-03 11:05:16 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-03 11:05:16 +0000
commitffaba98e725982bcfce445ec910ad015cee05011 (patch)
treec4075831e6c96ce7f691229dd584e841d5319b8a /Completion/Core
parent34c15d8a57a261d5096649834b20c3a47508b5f4 (diff)
downloadzsh-ffaba98e725982bcfce445ec910ad015cee05011.tar.gz
zsh-ffaba98e725982bcfce445ec910ad015cee05011.tar.xz
zsh-ffaba98e725982bcfce445ec910ad015cee05011.zip
Better quoting for directories with spaces.
Diffstat (limited to 'Completion/Core')
-rw-r--r--Completion/Core/_path_files4
1 files 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