From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: Re: file-patterns
Date: Wed, 10 May 2000 09:58:19 +0200 (MET DST) [thread overview]
Message-ID: <200005100758.JAA07439@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Tanaka Akira's message of 10 May 2000 01:59:31 +0900
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@informatik.hu-berlin.de
reply other threads:[~2000-05-10 7:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200005100758.JAA07439@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).