delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/08/13:59:17

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Sun, 8 Aug 2004 13:58:52 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: erik AT weibust DOT net
cc: cygwin AT cygwin DOT com
Subject: Re: question about cygwin.bat vs .bashrc
In-Reply-To: <20040807182035.3458.qmail@web11701.mail.yahoo.com>
Message-ID: <Pine.GSO.4.58.0408081350060.4727@slinky.cs.nyu.edu>
References: <20040807182035 DOT 3458 DOT qmail AT web11701 DOT mail DOT yahoo DOT com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Sat, 7 Aug 2004, Erik Weibust wrote:

> I was reading in the Cygwin users guide.  Specifically in section 2.2.
>
> It mentions some env vars that can be set in the cygwin.bat: CYGWIN,
> PATH, HOME, TERM, and LD_LIBRARY_PATH.
>
> First, none were defined in my cygwin.bat.  Is that a problem?  There
> weren't any env vars defined.

All of the above variables are optional, and will get default values if
not defined.  The default for CYGWIN is empty, PATH will be the Windows
PATH (also adjusted in /etc/profile), the rules for HOME are in the
mailing list archives (most often it comes from /etc/passwd if valid),
TERM is set to "cygwin" for the CMD.EXE window, and LD_LIBRARY_PATH is
empty and I don't believe it's even used in Cygwin (Windows uses PATH to
search for DLLs).

> Second question, Is there any reason to define the vars in cygwin.bat
> over my .bashrc?

Some variables (e.g., CYGWIN) need to be set before a Cygwin process
loads.  Besides, there are some rc scripts that execute before ~/.bashrc
(in particular, /etc/profile for login shells).

> I don't like the behavior of the windows command window so I use putty
> to ssh into my machine.

Assuming you run Cygwin sshd, this will inherit the environment variables
you set for the ssh daemon using cygrunsrv.  Another alternative is using
"rxvt -display :0 -T Cygwin -e bash -li", which will use the native
Windows GUI with no need for sshd.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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