From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: Re: zsh 4.0.1 _man bug
Date: Tue, 10 Jul 2001 10:05:29 +0200 (MET DST) [thread overview]
Message-ID: <200107100805.KAA14280@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: <1010710074900.ZM28083@candle.brasslantern.com>
[this one moved to -workers, I'll send the new _man to -users in a moment]
Bart Schaefer wrote:
> On Jul 10, 9:04am, Max Ischenko wrote:
> }
> } man n listb<TAB> -> man n listbox.n
> }
> } Does anyone have a fix for this?
>
> Try 4.0.2 ... the _man completion function was significantly improved.
But has a similar problem because I didn't change that pattern at the
end.
Bye
Sven
Index: Completion/Unix/Command/_man
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_man,v
retrieving revision 1.2
diff -u -r1.2 _man
--- Completion/Unix/Command/_man 2001/06/21 12:53:55 1.2
+++ Completion/Unix/Command/_man 2001/07/10 08:06:08
@@ -47,16 +47,15 @@
pages=( $dirs )
compfiles -p pages '' '' "$matcher" '' dummy '*'
+ pages=( ${^~pages}(N:t:r) )
- pages=( $~pages(:t:r) )
-
(($#mrd)) && pages[$#pages+1]=($(awk $awk $mrd))
# Remove any compression suffix, then remove the minimum possible string
# beginning with .<->: that handles problem cases like files called
# `POSIX.1.5'.
- compadd "$@" - ${pages%.<->*}
+ compadd "$@" - ${pages%.(?|<->*)}
}
_man "$@"
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
parent reply other threads:[~2001-07-10 8:08 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1010710074900.ZM28083@candle.brasslantern.com>]
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=200107100805.KAA14280@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.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).