From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21078 invoked from network); 21 May 2022 12:58:09 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 May 2022 12:58:09 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1653137889; b=nQrDaTxGecBKYaV51Xrdymxsw0nGJrCBJHSegzf5QuHlBGRpySiHA9Z6myYm69lBvgJWP1wPgf fRl7juNqhX4SXBxGgOpim10WMct1CZRYUJkg2HI8LKRqlZ8fDluiXY+QRAKhECJnmRLGLN/RtE qzguIsizVXpaNF9iU4MrpdAs7hRXVR6EaDjdVemkhc7ETF9nEJ0Ak04fOXyEh9PGGx06Nuq/N/ r9OnnvZ9Os4qF9HDLwtxY9oFowUAIIh67MpHyi34eDUr44xk9c0v+L4ADzOOxfnB4TlsIfZp64 erEheuTOCHk+Cqkg0jLz/Tpnv3fxeY5H+omueV1U+CCKDg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (nikam.ms.mff.cuni.cz) smtp.remote-ip=195.113.20.16; dmarc=none header.from=gimli.ms.mff.cuni.cz; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1653137889; bh=SMDNnCzRd2a0bl0xirEIv+fpnaLKIZeOFjEilX8rZ/c=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:DKIM-Signature; b=bOYTJhLk+l4xeKbnbRS4ZACN9RG4OyfbK7VnMLtwRoJWFI8QzxmpDsgzLyypYRteWUb3c7MVr6 gQ39yfETWf73reDshGW0iNEsXEX1X1i8plFfkmmUgcTZVopB5PT3Au+vV5oD8GPTxKVYafxjgT gYEvs48bqGwpzhSy2kb/advDJKPH+Azd/U9FUV2RqONm0pD+mMssP/gMZM9tL6tkDAVnq7247E W5QD83xUw5g1xtWwUopAODi4vFKclNpK4GfVTGPtawBuaDyHk+kVylxnEFhjuv/ef2o84MMGRP l9jq3HEWFWiJhbGOtHWEf2mHjE2NWAf3DhhHrxYgbFh+0w==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=VPzS+Y8coMUmoZu/cvwhKb7FyehsU7r1YdIbuezrQXw=; b=FOGYut61mFmmtQm7VHYooCNi9F HLI2UoBEL5mq0570yGud8VDSyQm6Iop6+bkEmXSB/J1ESGtBOxV0xLOaUIvYL0SZJDpUvZuvxuTVF /zy2/i6Mj2MKEHpB4CBYif35oSb3gmonfC+qknf52zP7OZjnIpVZ5TxV8FPMMaSSzxkMLZkPf9w/t sDwsVJo8vD0RIj4cBgVQtj5f+7qrTNJMMPHfiv6yFIziO5xQjk4Kfh503krEhIY5FTvo92KKpHgLb GL3wdHD2PllitoXqkpneaLwXuaa4uEDUpWjIXzeSSNRMcfLCT4Z3a/uMHrF4lwArwmtBWztQ+3W6n pGYUpbFg==; Received: from authenticated user by zero.zsh.org with local id 1nsOgK-000LRV-Cv; Sat, 21 May 2022 12:58:08 +0000 Authentication-Results: zsh.org; iprev=pass (nikam.ms.mff.cuni.cz) smtp.remote-ip=195.113.20.16; dmarc=none header.from=gimli.ms.mff.cuni.cz; arc=none Received: from nikam.ms.mff.cuni.cz ([195.113.20.16]:59630) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nsOfk-000L7Y-NP; Sat, 21 May 2022 12:57:34 +0000 Received: from gimli.ms.mff.cuni.cz (gimli.ms.mff.cuni.cz [195.113.20.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by nikam.ms.mff.cuni.cz (Postfix) with ESMTPS id 67B5D282E98; Sat, 21 May 2022 14:57:31 +0200 (CEST) Received: from imladris (internet5.mraknet.com [185.200.108.250]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: karelb) by gimli.ms.mff.cuni.cz (Postfix) with ESMTPSA id 59ACF446C78; Sat, 21 May 2022 14:57:31 +0200 (CEST) Date: Sat, 21 May 2022 14:57:31 +0200 From: Karel Balej To: Bart Schaefer Cc: Zsh hackers list Subject: Re: man completion Message-ID: <20220521125731.fexcrwbv7wabrod7@imladris> References: <20220515152021.pumg2z3fmfga76vp@asfaloth> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Seq: 50275 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: 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