diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-03 11:05:16 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-03 11:05:16 +0000 |
commit | ffaba98e725982bcfce445ec910ad015cee05011 (patch) | |
tree | c4075831e6c96ce7f691229dd584e841d5319b8a /Completion | |
parent | 34c15d8a57a261d5096649834b20c3a47508b5f4 (diff) | |
download | zsh-ffaba98e725982bcfce445ec910ad015cee05011.tar.gz zsh-ffaba98e725982bcfce445ec910ad015cee05011.tar.xz zsh-ffaba98e725982bcfce445ec910ad015cee05011.zip |
Better quoting for directories with spaces.
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Core/_path_files | 4 |
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 |