From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6458 invoked by alias); 20 Jul 2015 13:43:00 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 6445 invoked by uid 89); 20 Jul 2015 13:42:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-HELO: smtp47.i.mail.ru Received: from smtp47.i.mail.ru (HELO smtp47.i.mail.ru) (94.100.177.107) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 20 Jul 2015 13:42:56 +0000 Received: from ppp16-202.pppoe.mtu-net.ru ([81.195.16.202]:50727 helo=U250) by smtp47.i.mail.ru with esmtpa (envelope-from ) id 1ZHBLI-0003HR-E5 for cygwin@cygwin.com; Mon, 20 Jul 2015 16:42:52 +0300 Date: Mon, 20 Jul 2015 13:43:00 -0000 From: Mikhail Usenko To: cygwin@cygwin.com Subject: Re: Does /etc/profile need to set MANPATH? Message-Id: <20150720164249.a52b6073a83c38241696802f@inbox.ru> In-Reply-To: References: <53726A51.3010105@breisch.org> <20140513192457.GY2436@calimero.vinschen.de> <8738gc4810.fsf@Rainer.invalid> <20140515074942.GK2436@calimero.vinschen.de> <5374BCE5.7080609@breisch.org> <5374BE7D.70104@breisch.org> <20140515133939.GQ2436@calimero.vinschen.de> <5374FDCA.2020700@cygwin.com> <20140516113710.GE430@calimero.vinschen.de> <871tvsajhx.fsf@Rainer.invalid> <20150720150931.0abb13b1b3c771215ade21e1@inbox.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00308.txt.bz2 On Mon, 20 Jul 2015 08:20:12 -0400 Michael DePaulo <...> wrote: > On Mon, Jul 20, 2015 at 8:09 AM, Mikhail Usenko wrote: > > On Sat, 17 May 2014 10:37:30 +0200 > > Achim Gratz <...> wrote: > > > >> Corinna Vinschen writes: > >> > Whatever, it looks like MANPATH can really go away. Achim, do your worst. > >> > >> Done. > >> > > > > Besides defining MANPATH (and the other variables such as INFOPATH and PATH which can be modified by the user's .bash_profile) /etc/profile also did export the MANPATH variable. > > Now it does not and I suppose that user's skeleton file /etc/skel/.bash_profile should provide user-defined MANPATH pro-forma as an exported environment variable or else it will have no effect. > > > > -- > > Mike > [...] > > Why does Cygwin need to define MANPATH by default? Cygwin uses > /etc/man_db.conf, just like the Red Hat family of Linux distros. (The > Debian family uses /etc/manpath.config). > The point is that the current stanza for MANPATH in /etc/skel/.bash_profile --- %< --- # Set MANPATH so it includes users' private man if it exists # if [ -d "${HOME}/man" ]; then # MANPATH="${HOME}/man:${MANPATH}" # fi --- >8 --- is not useful because for: 1) if you run manpath from the command line in clean Cygwin installation you find out that "${HOME}/man" is (and always remains) in your searching path by default even if you have no "${HOME}/man" in your home directory path 2) if you are minded to add your private man pages like this: MANPATH="${HOME}/my-man-pages:${MANPATH}" it will not work. Now you should mark the variable for export: export MANPATH="${HOME}/my-man-pages:${MANPATH}" I suggest to change the skeleton file to something like this: --- %< --- # Set MANPATH so it includes users' private man # export MANPATH="${HOME}/manpages:${MANPATH}" --- >8 --- -- Mike -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple