Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Small fix for broken example in documentation
- X-seq: zsh-workers 5374
- From: opk@xxxxxxxxxxxxxxx (Oliver Kiddle)
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: Small fix for broken example in documentation
- Date: Sun, 14 Feb 1999 20:49:15 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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(~)'.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author