about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-08-03 11:12:30 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-08-03 11:12:30 +0000
commit7bf1f0292dec271281e82b0aa5a7908307a5e929 (patch)
tree25509298473a8f8254d909b09ed4ca037bfb60a1
parenta23d39ce3801c00d686d3ea5c63f0b16545cda30 (diff)
downloadzsh-7bf1f0292dec271281e82b0aa5a7908307a5e929.tar.gz
zsh-7bf1f0292dec271281e82b0aa5a7908307a5e929.tar.xz
zsh-7bf1f0292dec271281e82b0aa5a7908307a5e929.zip
one more problem with quoting of glob characters in filename completion (12496)
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Core/_path_files1
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 611473316..2aabf988d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-08-03  Sven Wischnowsky  <wischnow@zsh.org>
 
+	* 12496: Completion/Core/_path_files: one more problem with
+ 	quoting of glob characters in filename completion
+	
 	* 12494: Doc/Zsh/options.yo, Src/Zle/zle_main.c: make binding of
  	^D be used in first column if ignoreeof is set and ^D is bound to
  	a shell function widget
diff --git a/Completion/Core/_path_files b/Completion/Core/_path_files
index 1e8059e4b..26d2be6f3 100644
--- a/Completion/Core/_path_files
+++ b/Completion/Core/_path_files
@@ -421,6 +421,7 @@ for prepath in "$prepaths[@]"; do
     # There are more components, so skip over the next components and make a
     # slash be added.
 
+    tmp1=( ${tmp1//(#b)([][()|*?^#~<>])/\\${match[1]}} )
     tmp2="${(M)tpre##((.|..|)/)##}"
     if [[ -n "$tmp2" ]]; then
       skipped="/$tmp2"