Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: compadd -f with IPREFIX.



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