1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-22 00:21:27 +01:00

18811: needed to quote % in substitution as it was otherwise taken as an anchor

This commit is contained in:
Oliver Kiddle 2003-07-04 18:19:18 +00:00
parent a74721511e
commit 45dacd3700
2 changed files with 7 additions and 2 deletions

View file

@ -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,

View file

@ -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