www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/01/14:24:35

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <9f430e801d8adcf5868e1c5cf4276b43.squirrel@mail.morrison.mine.nu>
In-Reply-To: <4B154539.1030007@cornell.edu>
References: <4B14415D DOT 1050701 AT cornell DOT edu> <20091201094531 DOT GE30043 AT calimero DOT vinschen DOT de> <4B154539 DOT 1030007 AT cornell DOT edu>
Date: Tue, 1 Dec 2009 19:24:10 -0000
Subject: Re: Environment variable documentation
From: "John Morrison" <john AT morrison DOT mine DOT nu>
To: cygwin AT cygwin DOT com
User-Agent: SquirrelMail/1.4.20-RC2
MIME-Version: 1.0
OpenPGP: id=5E84D85D42B54E92
X-SA-Exim-Connect-IP: 127.0.0.1
X-SA-Exim-Mail-From: john AT morrison DOT mine DOT nu
X-SA-Exim-Scanned: No (on gateway.morrison.mine.nu); SAEximRunCond expanded to false
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Tue, December 1, 2009 4:32 pm, Ken Brown wrote:
> On 12/1/2009 4:45 AM, Corinna Vinschen wrote:
>> On Nov 30 17:04, Ken Brown wrote:
>>> The discussion currently going on in the thread
>>>
>>>   http://cygwin.com/ml/cygwin/2009-11/threads.html#00892
>>>
>>> makes me think that the section on environment variables in the
>>> user's guide (http://cygwin.com/1.7/cygwin-ug-net/setup-env.html)
>>> could use some expansion.  For example, it's not stated explicitly
>>> which Windows environment variables get imported into Cygwin (all of
>>> them?), nor is there a complete list of variables containing paths
>>
>> Yes, all of them.
>>
>>> that get converted to Unix format.  PATH, HOME, and LD_LIBRARY_PATH
>>> are mentioned, but TMPDIR, TMP, and TEMP are omitted.  I think the
>>> last three should be listed, along with the suggestion that users
>>> might want to unset them in the Cygwin environment.
>>
>> Yes, TMPDIR, TMP, and TEMP are handled the same way as PATH, HOME, and
>> LD_LIBRARY_PATH.  These six variables are the set of environment
>> variables which are subject to path conversion from Windows to POSIX and
>> vice versa.
>>
>>> I would be willing to take a stab at writing a patch if the
>>> developers think this would be useful.
>>
>> That sounds like a nice idea.
>
> OK, my patch is attached.  It anticipates the change to the default
> .bashrc file that we've been discussing in the thread cited above.

Hi Ken,

While I think it's a good idea to point out that they are (will be) unset
in the users .bashrc I'm not sure it's a good idea to tell people where
the default (/etc/defaults/etc/skel/.bashrc) is, since this will be
overwritten by the base package.  If people want to maintain their own set
of changes which is used in future that the package does not overwrite
/etc/skel/.bashrc is what they should edit.  However, since the skel files
are only copied *once* ~/.bashrc should be the first point of call.

Hope that makes sense!

J.


--
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