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 --- Completion/Unix/Type/_files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Unix/Type/_files') 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