delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/27/14:59:48

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,TW_YG
X-Spam-Check-By: sourceware.org
Message-ID: <4C780B13.8050807@bopp.net>
Date: Fri, 27 Aug 2010 13:59:31 -0500
From: Jeremy Bopp <jeremy AT bopp DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: MANPATH not being cygpathed like PATH is?
References: <AANLkTim8rPP8C7wCCZ4YkHaf+yAVdkmrhQtdWkzjiKTN AT mail DOT gmail DOT com>
In-Reply-To: <AANLkTim8rPP8C7wCCZ4YkHaf+yAVdkmrhQtdWkzjiKTN@mail.gmail.com>
X-IsSubscribed: yes
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

--------------enig0CC78FFF40FCBD4D17749C17
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 8/27/2010 1:28 PM, Tim Visher wrote:
> Hello Everyone,
>=20
> I recently switched from setting up environment variables within my
> bash_profile/bashrc file and instead started setting them on the box
> I'm on.  This works great for PATH.  In Windows I set the values to
> c:/whateverwhatever and then when my terminal fires up they get
> cygpathed (I'm assuming) into the right /usr/etcetcetc.
> Unfortunately, I'm observing no such behavior with the MANPATH.  I
> can't see any difference between it and the PATH value so I was
> wondering if this was something that cygwin does intentionally.

Cygwin only processes a handful of environment variables automatically
in the way you expect.  They include PATH, HOME, TMP, and TEMP if my
memory serves correctly.  Anything else you need to do for yourself.

The problem is that there is no general way to know what environment
variables should be processed, so an explicit list must be created and
maintained.  Apparently, a minimal set was chosen which is usually
sufficient to get you into a Cygwin environment at which point you can
selectively handle further processing as necessary.

For defining MANPATH within Windows, you could just specify it as Cygwin
wants it unless you have some non-Cygwin programs which also need to use
MANPATH.

-Jeremy


--------------enig0CC78FFF40FCBD4D17749C17
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx4CxUACgkQHt4KKRq6Zjdf/gCaAxqKMZY6otSDByf0Ec4ejOCu
zswAnRtBBMepxCFy7Kuh/2P9cxwkl/bH
=Bi3i
-----END PGP SIGNATURE-----

--------------enig0CC78FFF40FCBD4D17749C17--

- Raw text -


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