From 45dacd37002ba1e521c91e24e18eab477be25678 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 4 Jul 2003 18:19:18 +0000 Subject: 18811: needed to quote % in substitution as it was otherwise taken as an anchor --- ChangeLog | 7 ++++++- Completion/Unix/Type/_files | 2 +- 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 + + * 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 - * 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 -- cgit 1.4.1