Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: compadd -f with IPREFIX.
- X-seq: zsh-workers 6304
- From: Tanaka Akira <akr@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: compadd -f with IPREFIX.
- Date: 18 May 1999 18:47:32 +0900
- In-reply-to: Sven Wischnowsky's message of "Tue, 18 May 1999 09:15:03 +0200 (MET DST)"
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <199905180715.JAA15766@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
In article <199905180715.JAA15766@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:
> addmatches() used the IPREFIX it got also as `ripre' (the expanded
> form of the ignored prefix -- this is used for things like `~' and
> `$foo/<TAB>'). The patch makes it use a NULL pointer there.
Thanks. But I found another problem.
Z(2):akr@is27e1u11% ./Src/zsh -f
is27e1u11% cat <<'End' > Completion/User/_tst
heredoc> #compdef tst
heredoc> compset -P :
heredoc> compadd -f -r ':/ \t\n\-' - *
heredoc> End
is27e1u11% fpath=($PWD/Completion/*(/))
is27e1u11% . Completion/Core/compinit
is27e1u11% tst :Compl<TAB>
Then, I get following.
is27e1u11% tst :Completion/
There is no problem in above operation.
But, I put ":", "/" is retained as follows.
is27e1u11% tst :Completion/:
I think that "/" should be removed.
# The aim is colon-separated directories completion.
# compset -P '*:'; _path_files -r ':/ \t\n\-' -/
--
Tanaka Akira
Messages sorted by:
Reverse Date,
Date,
Thread,
Author