about summary refs log tree commit diff
path: root/Completion/Unix/Type/_files
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 /Completion/Unix/Type/_files
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
Diffstat (limited to 'Completion/Unix/Type/_files')
-rw-r--r--Completion/Unix/Type/_files2
1 files changed, 1 insertions, 1 deletions
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