X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:in-reply-to
	:references:mime-version:content-type:content-transfer-encoding;
	 q=dns; s=default; b=JgqPdpJhLvSjkfG770ZQdArtaYkji8HUayJvZCw9RqF
	CKx4BrV/ye3yB8w5oCD5bowMGeo3+NMEEp5RvC4v5lfZSC797pCVmIFu7cXZkdt0
	GSkEpTsxHliRE5rwQsJWQildbGRyXbT8UR+vEdqZ6JbQIg0YTUkf6VLMC1KhJzR0
	=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:in-reply-to
	:references:mime-version:content-type:content-transfer-encoding;
	 s=default; bh=g2iQCGu2LYq07UUsVwHMGXRTyWU=; b=O/TiW2YsEP3sO/POv
	Zj/Enx5+7JhgACkS5LH4f4lSIdhuMnxujrtt0Fx2389pdQx7x/jUbTDZ2x9BDRVX
	n30G66I97mTKmq6ejC25FmecNlWIKVyh1/UjtRKIWXSy6EBMiktzy1hWNQWea3RX
	o2ZYE3Y/vxu5DhPVJymUT8eKxw=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
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
Date: Mon, 20 Jul 2015 16:42:49 +0300
From: Mikhail Usenko <cygwin@inbox.ru>
To: cygwin@cygwin.com
Subject: Re: Does /etc/profile need to set MANPATH?
Message-Id: <20150720164249.a52b6073a83c38241696802f@inbox.ru>
In-Reply-To: <CAMKht8hM=ua-chfZUtEYo9OaN20c6s6VU53d6hq1HYLoz+3XNA@mail.gmail.com>
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>	<CAMKht8hM=ua-chfZUtEYo9OaN20c6s6VU53d6hq1HYLoz+3XNA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On Mon, 20 Jul 2015 08:20:12 -0400
Michael DePaulo <...> wrote:

> On Mon, Jul 20, 2015 at 8:09 AM, Mikhail Usenko <cygwin@inbox.ru> 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

