From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4689 invoked from network); 31 May 2002 05:24:21 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 31 May 2002 05:24:21 -0000 Received: (qmail 9685 invoked by alias); 31 May 2002 05:24:15 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17268 Received: (qmail 9674 invoked from network); 31 May 2002 05:24:14 -0000 Date: Fri, 31 May 2002 01:24:06 -0400 From: Clint Adams To: Bart Schaefer Cc: zsh-workers@sunsite.dk Subject: Re: PATCH: _man and manpath Message-ID: <20020531052406.GA9626@dman.com> References: <20020531045937.GA9093@dman.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.3.28i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) > I thought that was intentional. It's possible; however, on Debian's man, at least, they are not necessarily identical. In the manpath manpage: MANPATH If $MANPATH is set, manpath displays its value rather than determining it on the fly. If $MANPATH is prefixed by a colon, then the value of the vari­ able is appended to the list determined from the content of the configuration files. If the colon comes at the end of the value in the variable, then the determined list is appended to the content of the variable. If the value of the variable contains a double colon (::), then the determined list is inserted in the middle of the value, between the two colons. So if a user sets MANPATH=:~/localmanpages, manpath will return /usr/local/man:/usr/share/man:/usr/X11R6/man:/usr/man:/home/user/localmanpages but $manpath will be (/home/user/localmanpages). In this instance, $(manpath) is more useful. Obviously, if there is a system where $MANPATH is accurate and $(manpath) isn't, this will be suboptimal.