Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _path_files
- X-seq: zsh-workers 6303
- From: Tanaka Akira <akr@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: _path_files
- Date: 18 May 1999 15:50:44 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author