delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/07/20/09:43:17

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT inbox DOT ru>
To: cygwin AT cygwin DOT 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 DOT 3010105 AT breisch DOT org> <20140513192457 DOT GY2436 AT calimero DOT vinschen DOT de> <8738gc4810 DOT fsf AT Rainer DOT invalid> <20140515074942 DOT GK2436 AT calimero DOT vinschen DOT de> <5374BCE5 DOT 7080609 AT breisch DOT org> <5374BE7D DOT 70104 AT breisch DOT org> <20140515133939 DOT GQ2436 AT calimero DOT vinschen DOT de> <5374FDCA DOT 2020700 AT cygwin DOT com> <20140516113710 DOT GE430 AT calimero DOT vinschen DOT de> <871tvsajhx DOT fsf AT Rainer DOT invalid> <20150720150931 DOT 0abb13b1b3c771215ade21e1 AT inbox DOT ru> <CAMKht8hM=ua-chfZUtEYo9OaN20c6s6VU53d6hq1HYLoz+3XNA AT mail DOT gmail DOT com>
Mime-Version: 1.0
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 AT inbox DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019