about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-07-04 18:19:18 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-07-04 18:19:18 +0000
commit45dacd37002ba1e521c91e24e18eab477be25678 (patch)
treebaac2c67f556f25ba97cc3c6ac3e9a29c4bfbee5
parenta74721511e79c66915528c816e946736ce4616c4 (diff)
downloadzsh-45dacd37002ba1e521c91e24e18eab477be25678.tar.gz
zsh-45dacd37002ba1e521c91e24e18eab477be25678.tar.xz
zsh-45dacd37002ba1e521c91e24e18eab477be25678.zip
18811: needed to quote % in substitution as it was otherwise taken as an anchor
-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