delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/01/12:33:03

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 1 Dec 2009 18:32:44 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Environment variable documentation
Message-ID: <20091201173244.GF8059@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4B14415D DOT 1050701 AT cornell DOT edu> <20091201094531 DOT GE30043 AT calimero DOT vinschen DOT de> <4B154539 DOT 1030007 AT cornell DOT edu>
MIME-Version: 1.0
In-Reply-To: <4B154539.1030007@cornell.edu>
User-Agent: Mutt/1.5.20 (2009-06-14)
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 Dec  1 11:32, Ken Brown wrote:
> On 12/1/2009 4:45 AM, Corinna Vinschen wrote:
> >On Nov 30 17:04, Ken Brown wrote:
> >>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.
> 
> Ken

> --- setup2.sgml.orig	2009-12-01 10:37:00.156250000 -0500
> +++ setup2.sgml	2009-12-01 11:29:53.562500000 -0500
> @@ -4,7 +4,9 @@
>  You may wish to specify settings of several important environment
>  variables that affect Cygwin's operation.  Some of these settings need
>  to be in effect prior to launching the initial Cygwin session (before
> -starting your bash shell, for instance), and are, consequentially, best
> +starting your bash shell, for instance).  They should therefore be set
> +in the Windows environment; all Windows environment variables are
> +imported when Cygwin starts.  Such settings can be
>  placed in a .bat file.  An initial file is named Cygwin.bat and is created
>  in the Cygwin root directory that you specified during setup.  Note that
>  the "Cygwin" option of the Start Menu points to Cygwin.bat.  Edit
> @@ -66,6 +68,21 @@
>  <function>dlopen ()</function> call and do not need this variable.
>  </para>
>  
> +<para>
> +In addition to <envar>PATH</envar>, <envar>HOME</envar>,
> +and <envar>LD_LIBRARY_PATH</envar>, there are three other environment
> +variables which, if they exist in the Windows environment, are
> +converted to UNIX format: <envar>TMPDIR</envar>, <envar>TMP</envar>,
> +and <envar>TEMP</envar>.  The first is not set by default in the
> +Windows environment but the other two are, and they point to the
> +default Windows temporary directory.  If set, these variables will be
> +used by some Cygwin applications, possibly with unexpected results.
> +They are therefore unset in the default <filename>.bashrc</filename>
> +file (<filename>/etc/defaults/etc/skel/.bashrc</filename>).  You may
> +prefer to set them to point to <filename>/tmp</filename> or to any
> +other temporary directory of your choice.
> +</para>
> +
>  </sect1>
>  
>  <sect1 id="setup-maxmem"><title>Changing Cygwin's Maximum Memory</title>
> 

Looks good.  Thanks for doing this.  Let's just wait until the .bashrc
related thread settled down to a conclusion.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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