Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Re: file-patterns
- X-seq: zsh-workers 11292
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: Re: file-patterns
- Date: Wed, 10 May 2000 09:58:19 +0200 (MET DST)
- In-reply-to: Tanaka Akira's message of 10 May 2000 01:59:31 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Tanaka Akira wrote:
> Z(4):akr@serein% zsh -f
> serein% bindkey -e; autoload -U compinit; compinit -D
> serein% zstyle ':completion:*' file-patterns '%p:globbed-files *(-/):directories' '*:all-files'
> serein% ls
> %p Completion/ Doc/ Functions/ Src/ Test/
> CVS/ Config/ Etc/ Misc/ StartupFiles/ Util/
>
> Hm. `%p' is completed.
That's because `%' isn't special after `${foo//' any more.
Bye
Sven
Index: Completion/Core/_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_files,v
retrieving revision 1.9
diff -u -r1.9 _files
--- Completion/Core/_files 2000/04/12 12:35:38 1.9
+++ Completion/Core/_files 2000/05/10 07:57:08
@@ -26,7 +26,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
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author