Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: man completion
- X-seq: zsh-workers 50275
- From: Karel Balej <karelb@xxxxxxxxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: man completion
- Date: Sat, 21 May 2022 14:57:31 +0200
- Archived-at: <https://zsh.org/workers/50275>
- In-reply-to: <CAH+w=7Zb5Mc=dLw0EdHbHfi4OZRx=gbBH==6chO5FXj38wCK8w@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <20220515152021.pumg2z3fmfga76vp@asfaloth> <CAH+w=7YMj_TnQ5711ZNDZSqPeYyV+4OuwgmtHFmj8qsroDT9BA@mail.gmail.com> <CAH+w=7Yt84uC0PVNvjoXjh3apmYMgvXNYeSUdqPcg9vaZ4DEKA@mail.gmail.com> <CAH+w=7Zb5Mc=dLw0EdHbHfi4OZRx=gbBH==6chO5FXj38wCK8w@mail.gmail.com>
Thank you for looking into this.
Inspired by your messages, I have been able to solve my problem. Just to
clarify, my issue was not that zsh would not pick up changes made to
MANPATH after the shell is started. I set MANPATH in /etc/profile which
is read by zsh and I was confused that it was not being appended to the
standard paths even though it started with a colon. Turns out the
problem was that I was using mandoc instead of man-db as the man
provider, which however does not provide the manpath command.
This is probably still a bug though, as the comment in _man claims that
the function assumes either man-db or mandoc is used on Linux.
> First question, if the argument to -M has leading/doubled/trailing
> colons, is it supposed to be treated like $MANPATH with respect to
> adding the system paths? (It doesn't appear so, on Ubuntu 20 at
> least).
The manual page does not mention that it should be combined in any way -
it only says _override_.
> Third, what additional locations should be searched on AIX when -m is
> not present? (And does anyone care?)
Judging by the manual [1], probably just the /usr/share/man directory
structure.
[1] https://www.ibm.com/docs/en/aix/7.2?topic=m-man-command
Regards,
Karel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author