[Pkg-zsh-devel] Bug#138691: zsh: completion for man should find filenames as well as man pages
Vincent Lefevre
vincent at vinc17.net
Sun Aug 1 21:27:38 BST 2021
As this very old bug is still open...
On 2002-03-18 11:45:08 -0500, Matt Zimmerman wrote:
> On Mon, Mar 18, 2002 at 11:06:15AM -0500, Clint Adams wrote:
>
> > > When the -l option is given, man will open and display a man page
> > > specified as a pathname (and not search manpath). At least with
> > > Debian's man, this also works if -l is not specified, though manpath is
> > > searched first.
> >
> > This doesn't work for me with man-db 2.3.20-15. What am I doing wrong?
>
> The fallback only seems to work if there is a '/' character in the argument:
>
> poseidon:[~] ls man.1
> man.1
> poseidon:[~] man man.1
> No manual entry for man.1
> zsh: exit 16 man man.1
> poseidon:[~] man -l man.1
> Reformatting man.1, please wait...
> poseidon:[~] man ./man.1
> Reformatting man.1, please wait...
> poseidon:[~]
With zsh 5.8-6+b2 on my machine, completion works as expected if there
is a "/" character:
zira:~> man ./ma[Tab]
gives
zira:~> man ./man.1
Completion also works with -l, but also proposes files that are not
man pages. I don't know whether such a difference is expected.
--
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
More information about the Pkg-zsh-devel
mailing list