From: opk@thoth.u-net.com (Oliver Kiddle)
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: Small fix for broken example in documentation
Date: Sun, 14 Feb 1999 20:49:15 +0000 [thread overview]
Message-ID: <199902142049.UAA05629@Indigo.thoth.u-net.com> (raw)
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(~)'.
reply other threads:[~1999-02-14 20:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199902142049.UAA05629@Indigo.thoth.u-net.com \
--to=opk@thoth.u-net.com \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).