about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--Completion/Unix/Type/_files2
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d3f1b8523..a615503bc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
+2003-07-04  Oliver Kiddle  <opk@zsh.org>
+
+	* 18811: Completion/Unix/Type/_files: needed to quote % in
+	substitution as users/6154 caused it to be interpreted as an anchor
+
 2003-07-04  Peter Stephenson  <pws@csr.com>
 
-	* unposte: Functions/TCP/.distfiles: forgot this.
+	* unposted: Functions/TCP/.distfiles: forgot this.
 
 	* 18810: Doc/Zsh/tcpsys.yo, Functions/TCP/tcp_expect,
 	Functions/TCP/tcp_open, Functions/TCP/tcp_output,
diff --git a/Completion/Unix/Type/_files b/Completion/Unix/Type/_files
index add41dbbe..d9d278fa3 100644
--- a/Completion/Unix/Type/_files
+++ b/Completion/Unix/Type/_files
@@ -28,7 +28,7 @@ if zstyle -a ":completion:${curcontext}:" file-patterns tmp; then
   [[ "$type" = */* ]] && glob="$glob,*(-/)"
   pats=()
 
-  for i in ${tmp//%p/${${glob:-\*}//:/\\:}}; do
+  for i in ${tmp//\%p/${${glob:-\*}//:/\\:}}; do
     if [[ $i = *[^\\]:* ]]; then
       pats=( "$pats[@]" " $i " )
     else