From: Tanaka Akira <akr@jaist.ac.jp>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: _path_files
Date: 18 May 1999 15:50:44 +0900 [thread overview]
Message-ID: <rsq90aman23.fsf@crane.jaist.ac.jp> (raw)
Z:akr@is27e1u11% ./Src/zsh -f
is27e1u11% cat <<'End' > Completion/User/_tst
heredoc> #compdef tst
heredoc> _path_files -r '/ \t\n\-' -/
heredoc> End
is27e1u11% fpath=($PWD/Completion/*(/))
is27e1u11% . Completion/Core/compinit
is27e1u11% ln -s Completion z
is27e1u11% tst z/<TAB>
After above operation, zsh complete nothing.
I think following patch is required for completing files after
symbolic links.
--- Completion/Core/_path_files- Tue May 18 15:36:13 1999
+++ Completion/Core/_path_files Tue May 18 14:58:52 1999
@@ -222,7 +222,7 @@
# Get the matching files by globbing.
if [[ "$tpre$tsuf" = */* ]]; then
- tmp1=( ${^tmp1}*(D/) )
+ tmp1=( ${^tmp1}*(-D/) )
else
tmp1=( ${^tmp1}${^~pats} )
fi
--
Tanaka Akira
next reply other threads:[~1999-05-18 9:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-18 6:50 Tanaka Akira [this message]
1999-06-11 8:24 Sven Wischnowsky
2000-02-10 15:25 Sven Wischnowsky
2000-02-17 13:44 Sven Wischnowsky
2000-06-13 8:41 Sven Wischnowsky
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=rsq90aman23.fsf@crane.jaist.ac.jp \
--to=akr@jaist.ac.jp \
--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).