* PATCH: Small fix for broken example in documentation
@ 1999-02-14 20:49 Oliver Kiddle
0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 1999-02-14 20:49 UTC (permalink / raw)
To: zsh-workers
About a year ago, I was having problems with getting completion to work
with cd. I eventually tracked the problem down to a compctl from the
documentation I was using. The offending compctl is:
compctl -T -x 'C[0,*/*]' -f - 's[~]' -k friends -S/ -tn
The problem was that the C[...] part meant that cd and other things
would complete to files after the first slash.
My fix which I did mention at the time is:
compctl -T -x 's[~] C[0,[^/]#]' -k friends -S/ -tn
So that nobody else wastes their time and ours it'd be a good idea to
change this in the documentation. It is also applicable to the 3.0.5
documentation (atleast without -tn) but I don't have the source around
to do a patch.
The patch for the documentation follows.
Oliver Kiddle
*** Doc/Zsh/compctl.yo Sun Feb 14 20:47:22 1999
--- Doc/Zsh/compctl.yo Sun Feb 14 20:47:16 1999
***************
*** 89,95 ****
that completion after `tt(~)' is too slow to be usable), you can use
indent(
! tt(compctl -T -x 'C[0,*/*]' -f - 's[~]' -k friends -S/ -tn)
)
to complete the strings in the array tt(friends) after a `tt(~)'.
--- 89,95 ----
that completion after `tt(~)' is too slow to be usable), you can use
indent(
! tt(compctl -T -x 's[~] C[0,[^/]#]' -k friends -S/ -tn)
)
to complete the strings in the array tt(friends) after a `tt(~)'.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-02-14 20:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-14 20:49 PATCH: Small fix for broken example in documentation Oliver Kiddle
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).